[pypy-commit] pypy default: Backward compatibility

arigo noreply at buildbot.pypy.org
Sun Jun 2 13:31:56 CEST 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r64711:3cdac1ac25eb
Date: 2013-06-02 13:30 +0200
http://bitbucket.org/pypy/pypy/changeset/3cdac1ac25eb/

Log:	Backward compatibility

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
@@ -151,6 +151,8 @@
     'DEBUG': DEBUG,
     'NOTSET': NOTSET,
 }
+_levelNames = dict(_levelToName)
+_levelNames.update(_nameToLevel)   # backward compatibility
 
 def getLevelName(level):
     """


More information about the pypy-commit mailing list