diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2017-06-16 08:59:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-16 08:59:01 +0200 |
| commit | 272d888c7b58aff5e1614e3b12e8198b92054835 (patch) | |
| tree | 9514cfb06bace475f466f9c8222fb318e8966ee2 /Lib/test/test_argparse.py | |
| parent | faa63d1e84b273f75d94fe6e66f67a13e4c97f5e (diff) | |
| download | cpython-git-272d888c7b58aff5e1614e3b12e8198b92054835.tar.gz | |
bpo-29783: Replace codecs.open() with io.open() (#599)
Diffstat (limited to 'Lib/test/test_argparse.py')
| -rw-r--r-- | Lib/test/test_argparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index a5c4a8ec97..9c27f64662 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): |
