Skip to content

Commit

Permalink
Fix an exec() syntax error
Browse files Browse the repository at this point in the history
This didn't get converted to Python 2/3 correctly
  • Loading branch information
jwiggins committed Aug 8, 2017
1 parent 8cb8dd4 commit 115fdfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/kiva_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _draw_mainlayer(self, gc, view_bounds=None, mode="default"):
try:
self.error = ''
start_time = time.time()
exec(self._draw_code in {}, {'gc': gc})
exec(self._draw_code, {}, {'gc': gc})
self.last_draw_time = time.time() - start_time
except Exception as exc:
self.error = str(exc)
Expand Down

0 comments on commit 115fdfb

Please sign in to comment.