Skip to content

Commit

Permalink
fix some print functions
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Oct 18, 2016
1 parent 4e8ee6a commit d12194a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/RestrictedPython/Eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def prepRestrictedCode(self):
self.expr, '<string>')
if PROFILE:
end = clock()
print 'prepRestrictedCode: %d ms for %s' % (
(end - start) * 1000, repr(self.expr))
print('prepRestrictedCode: %d ms for %s' % (
(end - start) * 1000, repr(self.expr)))
if err:
raise SyntaxError(err[0])
self.used = tuple(used.keys())
Expand Down
2 changes: 1 addition & 1 deletion src/RestrictedPython/test_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _verifycode(code):
window[2].arg == "_write_"):
# check that arg is appropriately wrapped
for i, op in enumerate(window):
print i, op.opname, op.arg
print(i, op.opname, op.arg)
raise ValueError("unguard attribute set/del at %s:%d"
% (code.co_filename, line))
if op.opname.startswith("UNPACK"):
Expand Down

0 comments on commit d12194a

Please sign in to comment.