mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#15015: Fix accessing an non-existing attribute.
This commit is contained in:
parent
911fd327f1
commit
a26ad5a0a1
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue