[Python-checkins] CVS: python/dist/src/Lib profile.py,1.29,1.30
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 09 Aug 2001 14:22:17 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv12795
Modified Files:
profile.py
Log Message:
Fix two bugs detected by PyChecker: there's no need for redundant
"import MacOS", and there *is* a need for "import operator".
Index: profile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/profile.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** profile.py 2001/06/19 20:11:36 1.29
--- profile.py 2001/08/09 21:22:15 1.30
***************
*** 146,150 ****
if not timer:
if os.name == 'mac':
- import MacOS
self.timer = MacOS.GetTicks
self.dispatcher = self.trace_dispatch_mac
--- 146,149 ----
***************
*** 178,181 ****
--- 177,181 ----
# the timer() result contains two values in all
# cases.
+ import operator
def get_time_timer(timer=timer,
reduce=reduce, reducer=operator.add):