Skip to content

Commit 8f7f025

Browse files
committed
Fix ConfigParser.read_fp deprecation warning
1 parent 9faba3a commit 8f7f025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def get_key_no_doublebind(command):
305305
def load_theme(struct, path, colors, default_colors):
306306
theme = ConfigParser()
307307
with open(path) as f:
308-
theme.readfp(f)
308+
theme.read_file(f)
309309
for k, v in chain(theme.items("syntax"), theme.items("interface")):
310310
if theme.has_option("syntax", k):
311311
colors[k] = theme.get("syntax", k)

0 commit comments

Comments
 (0)