Skip to content

Commit 48ca117

Browse files
committed
Python 3.6 updates
1 parent 126171f commit 48ca117

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.azure-pipelines/syntax-validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
continue
1313
filename = os.path.normpath(os.path.join(base, f))
1414
try:
15-
with open(filename, "r") as fh:
15+
with open(filename) as fh:
1616
ast.parse(fh.read())
1717
except SyntaxError as se:
1818
failures += 1

procrunner/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def __getitem__(self, key):
333333
if key in self._extras:
334334
return self._extras[key]
335335
if not hasattr(self, key):
336-
raise KeyError("Unknown attribute {key}".format(key=key))
336+
raise KeyError(f"Unknown attribute {key}")
337337
return getattr(self, key)
338338

339339
def __eq__(self, other):

0 commit comments

Comments
 (0)