summaryrefslogtreecommitdiff
path: root/Lib/concurrent
diff options
context:
space:
mode:
authorBrian Quinlan <brian@sweetapp.com>2012-06-11 12:59:07 +1000
committerBrian Quinlan <brian@sweetapp.com>2012-06-11 12:59:07 +1000
commit524bca4b3d3443354d1babe3c7738d1bdd1bb80f (patch)
tree712cfd723ae14a516b07f19cfef42d283e80e5bf /Lib/concurrent
parente5e340994c7ce23ed9a28365b2b18b4c804ec736 (diff)
downloadcpython-524bca4b3d3443354d1babe3c7738d1bdd1bb80f.tar.gz
#15015: Fix accessing an non-existing attribute.
Diffstat (limited to 'Lib/concurrent')
-rw-r--r--Lib/concurrent/futures/_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/concurrent/futures/_base.py b/Lib/concurrent/futures/_base.py
index 88b5fbdd86..1e098be33f 100644
--- a/Lib/concurrent/futures/_base.py
+++ b/Lib/concurrent/futures/_base.py
@@ -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):