[Python-checkins] python/dist/src/Lib dumbdbm.py,1.18,1.19
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Sat, 01 Jun 2002 07:25:43 -0700
- Previous message: [Python-checkins] python/dist/src/Lib ConfigParser.py,1.42,1.43 SimpleHTTPServer.py,1.18,1.19 anydbm.py,1.12,1.13 bdb.py,1.40,1.41 cgi.py,1.72,1.73 cmd.py,1.29,1.30 codecs.py,1.24,1.25 copy.py,1.24,1.25 difflib.py,1.9,1.10 doctest.py,1.23,1.24 dospath.py,1.27,1.28 fnmatch.py,1.12,1.13 ftplib.py,1.70,1.71 gopherlib.py,1.11,1.12 httplib.py,1.50,1.51 ihooks.py,1.13,1.14 imaplib.py,1.47,1.48 inspect.py,1.34,1.35 linecache.py,1.9,1.10 mailbox.py,1.36,1.37 mailcap.py,1.10,1.11 mhlib.py,1.29,1.30 mimetools.py,1.25,1.26 mimetypes.py,1.21,1.22 netrc.py,1.14,1.15 ntpath.py,1.47,1.48 os.py,1.56,1.57 os2emxpath.py,1.4,1.5 pdb.py,1.52,1.53 pickle.py,1.65,1.66 posixpath.py,1.48,1.49 profile.py,1.44,1.45 pstats.py,1.23,1.24 pyclbr.py,1.23,1.24 pydoc.py,1.63,1.64 regsub.py,1.13,1.14 rexec.py,1.37,1.38 rfc822.py,1.70,1.71 sgmllib.py,1.39,1.40 site.py,1.42,1.43 smtplib.py,1.54,1.55 sre_parse.py,1.53,1.54 statcache.py,1.14,1.15 tempfile.py,1.38,1.39 toaiff.py,1.11,1.12 urllib.py,1.144,1.145 urllib2.py,1.28,1.29 user.py,1.5,1.6 warnings.py,1.14,1.15 weakref.py,1.15,1.16 webbrowser.py,1.30,1.31 xmllib.py,1.29,1.30 xmlrpclib.py,1.16,1.17 zipfile.py,1.21,1.22
- Next message: [Python-checkins] python/dist/src/Lib mhlib.py,1.30,1.31 netrc.py,1.15,1.16 poplib.py,1.20,1.21 pprint.py,1.21,1.22 profile.py,1.45,1.46 pstats.py,1.24,1.25 py_compile.py,1.19,1.20
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv11223
Modified Files:
dumbdbm.py
Log Message:
SF 563203. Replaced 'has_key()' with 'in'.
Index: dumbdbm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dumbdbm.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** dumbdbm.py 29 May 2002 16:18:41 -0000 1.18
--- dumbdbm.py 1 Jun 2002 14:25:41 -0000 1.19
***************
*** 109,113 ****
if not type(key) == type('') == type(val):
raise TypeError, "keys and values must be strings"
! if not self._index.has_key(key):
(pos, siz) = self._addval(val)
self._addkey(key, (pos, siz))
--- 109,113 ----
if not type(key) == type('') == type(val):
raise TypeError, "keys and values must be strings"
! if not key in self._index:
(pos, siz) = self._addval(val)
self._addkey(key, (pos, siz))
***************
*** 131,138 ****
def has_key(self, key):
! return self._index.has_key(key)
def __contains__(self, key):
! return self._index.has_key(key)
def iterkeys(self):
--- 131,138 ----
def has_key(self, key):
! return key in self._index
def __contains__(self, key):
! return key in self._index
def iterkeys(self):
- Previous message: [Python-checkins] python/dist/src/Lib ConfigParser.py,1.42,1.43 SimpleHTTPServer.py,1.18,1.19 anydbm.py,1.12,1.13 bdb.py,1.40,1.41 cgi.py,1.72,1.73 cmd.py,1.29,1.30 codecs.py,1.24,1.25 copy.py,1.24,1.25 difflib.py,1.9,1.10 doctest.py,1.23,1.24 dospath.py,1.27,1.28 fnmatch.py,1.12,1.13 ftplib.py,1.70,1.71 gopherlib.py,1.11,1.12 httplib.py,1.50,1.51 ihooks.py,1.13,1.14 imaplib.py,1.47,1.48 inspect.py,1.34,1.35 linecache.py,1.9,1.10 mailbox.py,1.36,1.37 mailcap.py,1.10,1.11 mhlib.py,1.29,1.30 mimetools.py,1.25,1.26 mimetypes.py,1.21,1.22 netrc.py,1.14,1.15 ntpath.py,1.47,1.48 os.py,1.56,1.57 os2emxpath.py,1.4,1.5 pdb.py,1.52,1.53 pickle.py,1.65,1.66 posixpath.py,1.48,1.49 profile.py,1.44,1.45 pstats.py,1.23,1.24 pyclbr.py,1.23,1.24 pydoc.py,1.63,1.64 regsub.py,1.13,1.14 rexec.py,1.37,1.38 rfc822.py,1.70,1.71 sgmllib.py,1.39,1.40 site.py,1.42,1.43 smtplib.py,1.54,1.55 sre_parse.py,1.53,1.54 statcache.py,1.14,1.15 tempfile.py,1.38,1.39 toaiff.py,1.11,1.12 urllib.py,1.144,1.145 urllib2.py,1.28,1.29 user.py,1.5,1.6 warnings.py,1.14,1.15 weakref.py,1.15,1.16 webbrowser.py,1.30,1.31 xmllib.py,1.29,1.30 xmlrpclib.py,1.16,1.17 zipfile.py,1.21,1.22
- Next message: [Python-checkins] python/dist/src/Lib mhlib.py,1.30,1.31 netrc.py,1.15,1.16 poplib.py,1.20,1.21 pprint.py,1.21,1.22 profile.py,1.45,1.46 pstats.py,1.24,1.25 py_compile.py,1.19,1.20
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]