Skip to content

Commit

Permalink
Enforce ruff/pyupgrade UP015
Browse files Browse the repository at this point in the history
UP015 Unnecessary open mode parameters
  • Loading branch information
DimitriPapadopoulos committed May 28, 2024
1 parent 043ee3b commit 5f842e4
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 @@ -11,7 +11,7 @@

def get_version():
version_filepath = Path('src', 'highdicom', 'version.py')
with open(version_filepath, 'rt', encoding='utf8') as f:
with open(version_filepath, encoding='utf8') as f:
version = re.search(r'__version__ = \'(.*?)\'', f.read()).group(1)
return version

Expand Down

0 comments on commit 5f842e4

Please sign in to comment.