From 596cb9c7e287abbb98c64974fb4944d522cb6b5a Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 28 Apr 2012 18:02:01 +0200 Subject: Replaced print statement by print function (forward compatibility syntax). --- django/dispatch/saferef.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'django/dispatch') 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 ) -- cgit v1.3