summaryrefslogtreecommitdiff
path: root/django/dispatch/saferef.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-04-28 18:02:01 +0200
committerClaude Paroz <claude@2xlibre.net>2012-04-30 20:45:03 +0200
commit596cb9c7e287abbb98c64974fb4944d522cb6b5a (patch)
treee8ad5402dd233458b392d1822146bb1102ba74a6 /django/dispatch/saferef.py
parentfe43ad5707d116bb1729bc17a24ca16c90ae040d (diff)
Replaced print statement by print function (forward compatibility syntax).
Diffstat (limited to 'django/dispatch/saferef.py')
-rw-r--r--django/dispatch/saferef.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/dispatch/saferef.py b/django/dispatch/saferef.py
index 364c13e43b..ebf423fc91 100644
--- a/django/dispatch/saferef.py
+++ b/django/dispatch/saferef.py
@@ -122,9 +122,9 @@ class BoundMethodWeakref(object):
except Exception as e:
try:
traceback.print_exc()
- except AttributeError as err:
- print '''Exception during saferef %s cleanup function %s: %s'''%(
- self, function, e
+ except AttributeError:
+ print('Exception during saferef %s cleanup function %s: %s' % (
+ self, function, e)
)
self.deletionMethods = [onDelete]
self.key = self.calculateKey( target )