Skip to content

Commit b2ec363

Browse files
pablogsalAA-Turner
andauthored
Apply suggestions from code review
Co-authored-by: Adam Turner <[email protected]>
1 parent 3b3cd7e commit b2ec363

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Lib/profiling/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
the call stack. Low overhead and suitable for production use.
1111
"""
1212

13-
__all__ = ["tracing", "sampling"]
13+
__all__ = ("tracing", "sampling")

Lib/profiling/sampling/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
call stack rather than tracing every function call.
55
"""
66

7-
from .collector import Collector
8-
from .pstats_collector import PstatsCollector
9-
from .stack_collector import CollapsedStackCollector
7+
from profiling.collector import Collector
8+
from profiling.pstats_collector import PstatsCollector
9+
from profiling.stack_collector import CollapsedStackCollector
1010

11-
__all__ = ["Collector", "PstatsCollector", "CollapsedStackCollector"]
11+
__all__ = ("Collector", "PstatsCollector", "CollapsedStackCollector")

Lib/profiling/sampling/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Run the sampling profiler from the command line."""
22

3-
from .sample import main
3+
from profiling.sample import main
44

55
if __name__ == '__main__':
66
main()

Lib/profiling/tracing/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""Tracing profiler for Python.
22
33
This module provides deterministic profiling of Python programs by tracing
4-
every function call and return. It's based on the cProfile implementation.
4+
every function call and return.
55
"""
66

7-
__all__ = ["run", "runctx", "Profile"]
7+
__all__ = ("run", "runctx", "Profile")
88

99
import _lsprof
1010
import importlib.machinery

Lib/profiling/tracing/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Run the tracing profiler from the command line."""
22

3-
from . import main
3+
from profiling.tracing import main
44

55
if __name__ == '__main__':
66
main()

0 commit comments

Comments
 (0)