summaryrefslogtreecommitdiff
path: root/Lib/asyncio/events.py
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-04-25 10:57:18 +0900
committerGitHub <noreply@github.com>2017-04-25 10:57:18 +0900
commit3e2ad8ec61a322370a6fbdfb2209cf74546f5e08 (patch)
tree0285efcc8b8d9b7215e4b8dbe106960187b1e628 /Lib/asyncio/events.py
parentf6448e5d65c349576df6e83b8324b9c208e77615 (diff)
downloadcpython-git-3e2ad8ec61a322370a6fbdfb2209cf74546f5e08.tar.gz
bpo-29617: Remove Python 3.3 support from asyncio (GH-232)
Diffstat (limited to 'Lib/asyncio/events.py')
-rw-r--r--Lib/asyncio/events.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/asyncio/events.py b/Lib/asyncio/events.py
index e85634e588..6af91374ec 100644
--- a/Lib/asyncio/events.py
+++ b/Lib/asyncio/events.py
@@ -19,20 +19,15 @@ import sys
import threading
import traceback
-from asyncio import compat
-
def _get_function_source(func):
- if compat.PY34:
- func = inspect.unwrap(func)
- elif hasattr(func, '__wrapped__'):
- func = func.__wrapped__
+ func = inspect.unwrap(func)
if inspect.isfunction(func):
code = func.__code__
return (code.co_filename, code.co_firstlineno)
if isinstance(func, functools.partial):
return _get_function_source(func.func)
- if compat.PY34 and isinstance(func, functools.partialmethod):
+ if isinstance(func, functools.partialmethod):
return _get_function_source(func.func)
return None