Commit 5349d8c4 authored by Jérome Perrin's avatar Jérome Perrin

custom_zodb: fix a ResourceWarning

parent 6102ed47
...@@ -152,7 +152,8 @@ else: ...@@ -152,7 +152,8 @@ else:
if zeo_server_pid: if zeo_server_pid:
save_mysql = None save_mysql = None
os.close(zeo_client) os.close(zeo_client)
zeo_client = eval(os.fdopen(r).read()) with os.fdopen(r) as f:
zeo_client = eval(f.read())
continue continue
else: else:
node_pid_list = activity_node = None node_pid_list = activity_node = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment