##// END OF EJS Templates
statprof: use absolute_imports...
Gregory Szorc -
r30256:2ed0b3f9 default
parent child Browse files
Show More
@@ -102,12 +102,22 b" significantly off if other threads' work"
102 main thread's work patterns.
102 main thread's work patterns.
103 """
103 """
104 # no-check-code
104 # no-check-code
105 from __future__ import division
105 from __future__ import absolute_import, division
106
106
107 import inspect, json, os, signal, tempfile, sys, getopt, threading
107 import collections
108 import contextlib
109 import getopt
110 import inspect
111 import json
112 import os
113 import signal
114 import sys
115 import tempfile
116 import threading
108 import time
117 import time
109 from collections import defaultdict
118
110 from contextlib import contextmanager
119 defaultdict = collections.defaultdict
120 contextmanager = contextlib.contextmanager
111
121
112 __all__ = ['start', 'stop', 'reset', 'display', 'profile']
122 __all__ = ['start', 'stop', 'reset', 'display', 'profile']
113
123
@@ -9,7 +9,6 b''
9 hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import
9 hgext/fsmonitor/pywatchman/capabilities.py not using absolute_import
10 hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
10 hgext/fsmonitor/pywatchman/pybser.py not using absolute_import
11 i18n/check-translation.py not using absolute_import
11 i18n/check-translation.py not using absolute_import
12 mercurial/statprof.py not using absolute_import
13 mercurial/statprof.py requires print_function
12 mercurial/statprof.py requires print_function
14 setup.py not using absolute_import
13 setup.py not using absolute_import
15 tests/test-demandimport.py not using absolute_import
14 tests/test-demandimport.py not using absolute_import
General Comments 0
You need to be logged in to leave comments. Login now