[pypy-commit] pypy logging-perf: Don't construct a long object just to throw it away (this is a backpor tof a change in python3)
alex_gaynor
noreply at buildbot.pypy.org
Thu May 23 02:30:16 CEST 2013
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: logging-perf
Changeset: r64503:9ab42b7860b2
Date: 2013-05-22 17:01 -0700
http://bitbucket.org/pypy/pypy/changeset/9ab42b7860b2/
Log: Don't construct a long object just to throw it away (this is a
backpor tof a change in python3)
diff --git a/lib-python/2.7/logging/__init__.py b/lib-python/2.7/logging/__init__.py
--- a/lib-python/2.7/logging/__init__.py
+++ b/lib-python/2.7/logging/__init__.py
@@ -277,7 +277,7 @@
self.lineno = lineno
self.funcName = func
self.created = ct
- self.msecs = (ct - long(ct)) * 1000
+ self.msecs = (ct - int(ct)) * 1000
self.relativeCreated = (self.created - _startTime) * 1000
if logThreads and thread:
self.thread = thread.get_ident()
More information about the pypy-commit
mailing list