summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/tasks.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@dropbox.com>2013-10-17 22:39:45 (GMT)
committerGuido van Rossum <guido@dropbox.com>2013-10-17 22:39:45 (GMT)
commitfc29e0f37e8a5928c3ef38ce7e02c64984d1b5bc (patch)
tree9c111dea008d9eec467e63d76d59502c2f5128a3 /Lib/asyncio/tasks.py
parentb795aa8547b5a615d715fedc6a6267b7e8811d94 (diff)
downloadcpython-fc29e0f37e8a5928c3ef38ce7e02c64984d1b5bc.zip
cpython-fc29e0f37e8a5928c3ef38ce7e02c64984d1b5bc.tar.gz
cpython-fc29e0f37e8a5928c3ef38ce7e02c64984d1b5bc.tar.bz2
Rename the logger to plain "logger".
Diffstat (limited to 'Lib/asyncio/tasks.py')
-rw-r--r--Lib/asyncio/tasks.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py
index 2c8579f..6385017 100644
--- a/Lib/asyncio/tasks.py
+++ b/Lib/asyncio/tasks.py
@@ -16,7 +16,7 @@ import weakref
from . import events
from . import futures
-from .log import asyncio_log
+from .log import logger
# If you set _DEBUG to true, @coroutine will wrap the resulting
# generator objects in a CoroWrapper instance (defined below). That
@@ -62,8 +62,8 @@ class CoroWrapper:
code = func.__code__
filename = code.co_filename
lineno = code.co_firstlineno
- asyncio_log.error('Coroutine %r defined at %s:%s was never yielded from',
- func.__name__, filename, lineno)
+ logger.error('Coroutine %r defined at %s:%s was never yielded from',
+ func.__name__, filename, lineno)
def coroutine(func):