Fix two bugs detected by PyChecker: there's no need for redundant
"import MacOS", and there *is* a need for "import operator".
diff --git a/Lib/profile.py b/Lib/profile.py
index 5df1025..b92bd91 100755
--- a/Lib/profile.py
+++ b/Lib/profile.py
@@ -145,7 +145,6 @@
if not timer:
if os.name == 'mac':
- import MacOS
self.timer = MacOS.GetTicks
self.dispatcher = self.trace_dispatch_mac
self.get_time = _get_time_mac
@@ -177,6 +176,7 @@
# list (for performance). Note that we can't assume
# the timer() result contains two values in all
# cases.
+ import operator
def get_time_timer(timer=timer,
reduce=reduce, reducer=operator.add):
return reduce(reducer, timer(), 0)