Skip to content

Commit

Permalink
Merge pull request #11 from meain/master
Browse files Browse the repository at this point in the history
Read files to be compiled as binary
  • Loading branch information
agermanidis authored Nov 8, 2017
2 parents 238e0e5 + d42b826 commit bf5fe28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ def get_module_name(full_path):


def generate_call_event(frame):
frame_locals = {k:
frame_locals = {k:
{'value': process_variable(v), 'type': type(v).__name__}
for k, v in frame.f_locals.items() if not should_ignore_variable(k)
}
frame_globals = {k:
frame_globals = {k:
{'value': process_variable(v), 'type': type(v).__name__}
for k, v in frame.f_globals.items() if not should_ignore_variable(k)
}
Expand Down Expand Up @@ -185,7 +185,7 @@ def global_trace(frame, why, arg):
return local_trace


with open(starting_filename) as fp:
with open(starting_filename, 'rb') as fp:
code = compile(fp.read(), starting_filename, 'exec')


Expand Down

0 comments on commit bf5fe28

Please sign in to comment.