diff options
author | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-01-10 14:08:50 -0500 |
---|---|---|
committer | Jean-Paul Calderone <exarkun@twistedmatrix.com> | 2014-01-10 14:08:50 -0500 |
commit | 558b78a781045aaccb291c9a7d48804ed1727ea1 (patch) | |
tree | c7af2f0fcad4d5fac73f77daf50daed3526ecb2b | |
parent | 9b4115fdb1309fce2362e10b66a17234779487bb (diff) | |
download | pyopenssl-558b78a781045aaccb291c9a7d48804ed1727ea1.tar.gz |
Python 3 syntax compatibility
-rw-r--r-- | memdbg.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -31,7 +31,7 @@ verbose = False def log(s): if verbose: - print s + print(s) def _backtrace(): buf = _ffi.new("void*[]", 64) @@ -75,8 +75,8 @@ def free(p): 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 |