commit | 558b78a781045aaccb291c9a7d48804ed1727ea1 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Fri Jan 10 14:08:50 2014 -0500 |
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | Fri Jan 10 14:08:50 2014 -0500 |
tree | c7af2f0fcad4d5fac73f77daf50daed3526ecb2b | |
parent | 9b4115fdb1309fce2362e10b66a17234779487bb [diff] |
Python 3 syntax compatibility
diff --git a/memdbg.py b/memdbg.py index e30b68c..324d0fd 100644 --- a/memdbg.py +++ b/memdbg.py
@@ -31,7 +31,7 @@ def log(s): if verbose: - print s + print(s) def _backtrace(): buf = _ffi.new("void*[]", 64) @@ -75,8 +75,8 @@ if _api.CRYPTO_set_mem_functions(malloc, realloc, free): - print 'Enabled memory debugging' + log('Enabled memory debugging') heap = {} else: - print 'Failed to enable memory debugging' + log('Failed to enable memory debugging') heap = None