]> granicus.if.org Git - python/commitdiff
#15015: Fix accessing an non-existing attribute.
authorBrian Quinlan <brian@sweetapp.com>
Mon, 11 Jun 2012 02:59:07 +0000 (12:59 +1000)
committerBrian Quinlan <brian@sweetapp.com>
Mon, 11 Jun 2012 02:59:07 +0000 (12:59 +1000)
Lib/concurrent/futures/_base.py

index 88b5fbdd8606adda866b485e8f52a50860682b86..1e098be33ff11751c91ec512e5583fce7f707653 100644 (file)
@@ -470,8 +470,8 @@ class Future(object):
                 return True
             else:
                 LOGGER.critical('Future %s in unexpected state: %s',
-                                id(self.future),
-                                self.future._state)
+                                id(self),
+                                self._state)
                 raise RuntimeError('Future in unexpected state')
 
     def set_result(self, result):