Commit 249e5853 authored by Jason R. Coombs's avatar Jason R. Coombs

Extract variable

parent 33f496c6
......@@ -30,7 +30,8 @@ def _execfile(filename, globals, locals=None):
"""
Python 3 implementation of execfile.
"""
with open(filename, 'rb') as stream:
mode = 'rb'
with open(filename, mode) as stream:
script = stream.read()
if locals is None:
locals = globals
......
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