summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2014-01-10 14:08:50 -0500
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2014-01-10 14:08:50 -0500
commit558b78a781045aaccb291c9a7d48804ed1727ea1 (patch)
treec7af2f0fcad4d5fac73f77daf50daed3526ecb2b
parent9b4115fdb1309fce2362e10b66a17234779487bb (diff)
downloadpyopenssl-558b78a781045aaccb291c9a7d48804ed1727ea1.tar.gz
Python 3 syntax compatibility
-rw-r--r--memdbg.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/memdbg.py b/memdbg.py
index e30b68c..324d0fd 100644
--- a/memdbg.py
+++ b/memdbg.py
@@ -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