diff options
Diffstat (limited to 'repo_trace.py')
-rw-r--r-- | repo_trace.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repo_trace.py b/repo_trace.py index 49462174..01beaf8e 100644 --- a/repo_trace.py +++ b/repo_trace.py | |||
@@ -20,11 +20,11 @@ Temporary: Tracing is always on. Set `REPO_TRACE=0` to turn off. | |||
20 | To also include trace outputs in stderr do `repo --trace_to_stderr ...` | 20 | To also include trace outputs in stderr do `repo --trace_to_stderr ...` |
21 | """ | 21 | """ |
22 | 22 | ||
23 | import contextlib | ||
23 | import sys | 24 | import sys |
24 | import os | 25 | import os |
25 | import time | 26 | import time |
26 | import tempfile | 27 | import tempfile |
27 | from contextlib import ContextDecorator | ||
28 | 28 | ||
29 | import platform_utils | 29 | import platform_utils |
30 | 30 | ||
@@ -68,7 +68,7 @@ def _SetTraceFile(quiet): | |||
68 | _TRACE_FILE = _GetTraceFile(quiet) | 68 | _TRACE_FILE = _GetTraceFile(quiet) |
69 | 69 | ||
70 | 70 | ||
71 | class Trace(ContextDecorator): | 71 | class Trace(contextlib.ContextDecorator): |
72 | """Used to capture and save git traces.""" | 72 | """Used to capture and save git traces.""" |
73 | 73 | ||
74 | def _time(self): | 74 | def _time(self): |