summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle_test/test_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/idle_test/test_config.py')
-rw-r--r--Lib/idlelib/idle_test/test_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_config.py b/Lib/idlelib/idle_test/test_config.py
index 697fda5..08ed76f 100644
--- a/Lib/idlelib/idle_test/test_config.py
+++ b/Lib/idlelib/idle_test/test_config.py
@@ -191,7 +191,7 @@ class IdleConfTest(unittest.TestCase):
idle_dir = os.path.abspath(sys.path[0])
for ctype in conf.config_types:
config_path = os.path.join(idle_dir, '../config-%s.def' % ctype)
- with open(config_path, 'r') as f:
+ with open(config_path) as f:
cls.config_string[ctype] = f.read()
cls.orig_warn = config._warn