Skip to content

Commit 28daf37

Browse files
authored
Workaround removed function readfp
1 parent c293c92 commit 28daf37

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tests/online_test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929

3030
def read_config(filename):
3131
config = ConfigParser.ConfigParser()
32-
config.readfp(open(filename))
32+
if sys.version_info >= (3, 2):
33+
config.read_file(open(filename))
34+
else:
35+
config.readfp(open(filename))
3336
return config
3437

3538

0 commit comments

Comments
 (0)