Skip to content
Merged
Prev Previous commit
Next Next commit
Revert some temporary changes.
  • Loading branch information
serhiy-storchaka committed Dec 6, 2020
commit f972573e220708edec7bf58f1e3a0c350c97fd07
2 changes: 1 addition & 1 deletion Lib/asyncio/futures.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def _chain_future(source, destination):
raise TypeError('A future is required for source argument')
if not isfuture(destination) and not isinstance(destination,
concurrent.futures.Future):
raise TypeError('A future is required for destination argument %r' % destination)
raise TypeError('A future is required for destination argument')
source_loop = _get_loop(source) if isfuture(source) else None
dest_loop = _get_loop(destination) if isfuture(destination) else None

Expand Down
2 changes: 1 addition & 1 deletion Lib/asyncio/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _all_tasks_compat(loop=None):
# the completed ones. Used to implement deprecated "Tasks.all_task()"
# method.
if loop is None:
loop = events._get_event_loop()
loop = events.get_event_loop()
# Looping over a WeakSet (_all_tasks) isn't safe as it can be updated from another
# thread while we do so. Therefore we cast it to list prior to filtering. The list
# cast itself requires iteration, so we repeat it several times ignoring
Expand Down