[pypy-commit] pypy default: 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
Mon May 27 18:12:52 CEST 2013
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch:
Changeset: r64585:1d88edfd578c
Date: 2013-05-22 17:01 -0700
http://bitbucket.org/pypy/pypy/changeset/1d88edfd578c/
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
@@ -279,7 +279,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