]> granicus.if.org Git - python/commitdiff
SF 740055: optional argument protocol in shelve.open is ignored
authorRaymond Hettinger <python@rcn.com>
Tue, 20 May 2003 05:15:55 +0000 (05:15 +0000)
committerRaymond Hettinger <python@rcn.com>
Tue, 20 May 2003 05:15:55 +0000 (05:15 +0000)
* added the missing parameter
* put optional parameters in correct positional order

Lib/shelve.py

index 0809b5e6921b6e7c61cd6f53457230de859de055..059d7f3a00d5d9af7280cca498640e7e0120bdf4 100644 (file)
@@ -228,4 +228,4 @@ def open(filename, flag='c', protocol=None, writeback=False, binary=None):
     See the module's __doc__ string for an overview of the interface.
     """
 
-    return DbfilenameShelf(filename, flag, binary, writeback)
+    return DbfilenameShelf(filename, flag, protocol, writeback, binary)