python/dist/src/Lib/bsddb db.py,1.3,1.4
Update of /cvsroot/python/python/dist/src/Lib/bsddb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3242 Modified Files: db.py Log Message: Simplify string comparison using startswith() Index: db.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/db.py,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- db.py 21 Sep 2003 00:08:14 -0000 1.3 +++ db.py 2 Feb 2005 18:47:18 -0000 1.4 @@ -37,7 +37,7 @@ # case we ever want to augment the stuff in _db in any way. For now # it just simply imports everything from _db. -if __name__[:len('bsddb3.')] == 'bsddb3.': +if __name__.startswith('bsddb3.'): # import _pybsddb binary as it should be the more recent version from # a standalone pybsddb addon package than the version included with # python as bsddb._bsddb.
participants (1)
-
holdenweb@users.sourceforge.net