Skip to content

Commit

Permalink
Address flake8 hints
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippWendler committed Nov 29, 2023
1 parent 2e255a1 commit 13a86bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchexec/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Property(collections.namedtuple("Property", "filename is_svcomp name")):

__slots__ = () # reduce per-instance memory consumption

_cache = dict() # cache for Property instances / OSErrors on creation
_cache = {} # cache for Property instances / OSErrors on creation

def _adjust_score_for_witness_validation(self, score, witness_category):
if witness_category == WITNESS_CATEGORY_CORRECT:
Expand Down Expand Up @@ -198,7 +198,7 @@ def create(cls, propertyfile):
return cached

open_func = (
(lambda f: io.TextIOWrapper(urllib.request.urlopen(f)))
(lambda f: io.TextIOWrapper(urllib.request.urlopen(f))) # noqa: S310
if util.is_url(propertyfile)
else open
)
Expand Down

0 comments on commit 13a86bb

Please sign in to comment.