Skip to content

Commit

Permalink
io.open()open()
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Oct 9, 2023
1 parent b4bb70c commit fae7a5c
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 fae7a5c

Please sign in to comment.