Author: Alex Gaynor <[email protected]>
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()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to