Skip to content

Commit bddc860

Browse files
committed
Use "io.open()"
1 parent f0082b6 commit bddc860

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎setup.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"""Backward-compatible setup script."""
44

55
import ast
6-
import codecs
76
import glob
7+
import io
88
import os
99
import re
1010
import shutil
@@ -289,7 +289,7 @@ def read_description_file(config):
289289
return ''
290290
value = []
291291
for filename in filenames.split():
292-
f = codecs.open(filename, encoding='utf-8')
292+
f = io.open(filename, encoding='utf-8')
293293
try:
294294
value.append(f.read())
295295
finally:

0 commit comments

Comments
 (0)