]> granicus.if.org Git - python/commitdiff
#17198: merge with 3.3.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 7 Jul 2013 11:16:05 +0000 (13:16 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 7 Jul 2013 11:16:05 +0000 (13:16 +0200)
1  2 
Lib/dbm/__init__.py
Lib/test/test_dbm.py
Misc/NEWS

index 0609e4990c2f8ea5e134b8b9b9a75664528fa0fa,a783fde464b30fceb0e79d173a127577c56d88a5..5f4664a7c652d2091a4a5b76c6316c7b92994296
@@@ -42,8 -42,13 +42,13 @@@ _names = ['dbm.gnu', 'dbm.ndbm', 'dbm.d
  _defaultmod = None
  _modules = {}
  
 -error = (error, IOError)
 +error = (error, OSError)
  
+ try:
+     from dbm import ndbm
+ except ImportError:
+     ndbm = None
  
  def open(file, flag='r', mode=0o666):
      """Open or create database at path given by *file*.
Simple merge
diff --cc Misc/NEWS
index d8a4ba0c022175c4b2929f02d53eba71c1e7926d,63d49693d7d788a7aa411482747a48110366a6bf..f457fddc2a16fc812c04ff5934b77129a5b54829
+++ b/Misc/NEWS
@@@ -142,11 -41,11 +142,14 @@@ Core and Builtin
  Library
  -------
  
+ - Issue #17198: Fix a NameError in the dbm module.  Patch by Valentina
+   Mukhamedzhanova.
  - Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form.
  
 +- Issue #18020: improve html.escape speed by an order of magnitude.
 +  Patch by Matt Bryant.
 +
  - Issue #18347: ElementTree's html serializer now preserves the case of
    closing tags.