From fae7a5cc7e3ec709388ecbf957be817411d7cef5 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Mon, 9 Oct 2023 18:53:15 +0200 Subject: [PATCH] =?UTF-8?q?`io.open()`=20=E2=86=92=20`open()`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index a1034d4c..563c7f66 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,5 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -import io import re import setuptools @@ -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