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

Reply via email to