Skip to content

Commit 300b89d

Browse files
committed
Remove redundant implementation in new syntax
1 parent cb7ecda commit 300b89d

4 files changed

Lines changed: 3 additions & 39 deletions

File tree

memory_profiler/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import contextlib
1919

2020
from .code_map import CodeMap
21-
from .common import PY2, PY34, PY35, HAS_TRACEMALLOC
21+
from .common import PY2, PY34, HAS_TRACEMALLOC
2222
from .utils import (
2323
show_results,
2424
choose_backend,
@@ -28,9 +28,7 @@
2828
from .line_profiler import LineProfiler, get_profile_wrapper
2929

3030
if PY34:
31-
from ._aio_34 import get_profile_wrapper
32-
elif PY35:
33-
from ._aio_35 import get_profile_wrapper
31+
from ._async import get_profile_wrapper
3432

3533

3634
if sys.platform == "win32":

memory_profiler/_aio_35.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

memory_profiler/common.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
PY2 = sys.version_info[0] == 2
55

6-
PY34 = (3, 4) < sys.version_info < (3, 5)
7-
PY35 = (3, 5) < sys.version_info
6+
PY34 = (3, 4) < sys.version_info
87

98
try:
109
import tracemalloc # noqa

0 commit comments

Comments
 (0)