Codebase list python-procrunner / 48ca117
Python 3.6 updates Markus Gerstel 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1111 continue
1212 filename = os.path.normpath(os.path.join(base, f))
1313 try:
14 with open(filename, "r") as fh:
14 with open(filename) as fh:
1515 ast.parse(fh.read())
1616 except SyntaxError as se:
1717 failures += 1
332332 if key in self._extras:
333333 return self._extras[key]
334334 if not hasattr(self, key):
335 raise KeyError("Unknown attribute {key}".format(key=key))
335 raise KeyError(f"Unknown attribute {key}")
336336 return getattr(self, key)
337337
338338 def __eq__(self, other):