summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_argparse.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-06-16 06:59:01 (GMT)
committerGitHub <noreply@github.com>2017-06-16 06:59:01 (GMT)
commit272d888c7b58aff5e1614e3b12e8198b92054835 (patch)
tree9514cfb06bace475f466f9c8222fb318e8966ee2 /Lib/test/test_argparse.py
parentfaa63d1e84b273f75d94fe6e66f67a13e4c97f5e (diff)
downloadcpython-272d888c7b58aff5e1614e3b12e8198b92054835.zip
cpython-272d888c7b58aff5e1614e3b12e8198b92054835.tar.gz
cpython-272d888c7b58aff5e1614e3b12e8198b92054835.tar.bz2
bpo-29783: Replace codecs.open() with io.open() (#599)
Diffstat (limited to 'Lib/test/test_argparse.py')
-rw-r--r--Lib/test/test_argparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
index a5c4a8e..9c27f64 100644
--- a/Lib/test/test_argparse.py
+++ b/Lib/test/test_argparse.py
@@ -4598,7 +4598,7 @@ class TestEncoding(TestCase):
def _test_module_encoding(self, path):
path, _ = os.path.splitext(path)
path += ".py"
- with codecs.open(path, 'r', 'utf-8') as f:
+ with open(path, 'r', encoding='utf-8') as f:
f.read()
def test_argparse_module_encoding(self):