Skip to content

Commit

Permalink
Upgrade Python syntax with pyupgrade --py37-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 15, 2023
1 parent 6666337 commit 496c69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def make_release_tree(self, base_dir: str, files: Sequence) -> None:
def _stamp_version(filename: str) -> None:
found, out = False, []
try:
with open(filename, "r") as f:
with open(filename) as f:
for line in f:
if "__version__ =" in line:
line = line.replace("\"git\"", "'%s'" % VERSION)
Expand Down

0 comments on commit 496c69c

Please sign in to comment.