Skip to content

Commit

Permalink
Merge pull request #265 from DimitriPapadopoulos/io.open
Browse files Browse the repository at this point in the history
`io.open()` → `open()`
  • Loading branch information
CPBridge committed Oct 11, 2023
2 parents 9e7ded7 + fae7a5c commit 0292fb8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import io
import re

import setuptools
Expand All @@ -13,7 +12,7 @@

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

Expand Down

0 comments on commit 0292fb8

Please sign in to comment.