Skip to content

Commit bf5fe28

Browse files
authored
Merge pull request #11 from meain/master
Read files to be compiled as binary
2 parents 238e0e5 + d42b826 commit bf5fe28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tracer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ def get_module_name(full_path):
100100

101101

102102
def generate_call_event(frame):
103-
frame_locals = {k:
103+
frame_locals = {k:
104104
{'value': process_variable(v), 'type': type(v).__name__}
105105
for k, v in frame.f_locals.items() if not should_ignore_variable(k)
106106
}
107-
frame_globals = {k:
107+
frame_globals = {k:
108108
{'value': process_variable(v), 'type': type(v).__name__}
109109
for k, v in frame.f_globals.items() if not should_ignore_variable(k)
110110
}
@@ -185,7 +185,7 @@ def global_trace(frame, why, arg):
185185
return local_trace
186186

187187

188-
with open(starting_filename) as fp:
188+
with open(starting_filename, 'rb') as fp:
189189
code = compile(fp.read(), starting_filename, 'exec')
190190

191191

0 commit comments

Comments
 (0)