diff --git a/python/helpers/pydev/pydevd.py b/python/helpers/pydev/pydevd.py index 6bedfd61a8fe..6755ba14483a 100644 --- a/python/helpers/pydev/pydevd.py +++ b/python/helpers/pydev/pydevd.py @@ -2396,7 +2396,7 @@ if __name__ == '__main__': if setup['save-threading']: debugger.thread_analyser = ThreadingLogger() if setup['save-asyncio']: - if IS_PY3K: + if IS_PY34_OLDER: debugger.asyncio_analyser = AsyncioLogger() try: diff --git a/python/helpers/pydev/pydevd_constants.py b/python/helpers/pydev/pydevd_constants.py index b7960c13d836..1fa374f8b56d 100644 --- a/python/helpers/pydev/pydevd_constants.py +++ b/python/helpers/pydev/pydevd_constants.py @@ -52,11 +52,14 @@ if IS_JYTHON: # Python 3? #======================================================================================================================= IS_PY3K = False +IS_PY34_OLDER = False IS_PY27 = False IS_PY24 = False try: if sys.version_info[0] >= 3: IS_PY3K = True + if sys.version_info[0] == 3 and sys.version_info[1] >= 4: + IS_PY34_OLDER = True elif sys.version_info[0] == 2 and sys.version_info[1] == 7: IS_PY27 = True elif sys.version_info[0] == 2 and sys.version_info[1] == 4: