From aa536e89025e6f6132aedbcffbdb8833d4dcfce0 Mon Sep 17 00:00:00 2001 From: mhagger Date: Tue, 11 Aug 2009 22:50:47 +0000 Subject: [PATCH] * cvs2svn_lib/database.py (Database.__init__): Use symbolic constant. git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@4846 be7e6eca-30d4-0310-a8e5-ac0d63af7087 --- cvs2svn_lib/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvs2svn_lib/database.py b/cvs2svn_lib/database.py index 89dddd09..d670d682 100644 --- a/cvs2svn_lib/database.py +++ b/cvs2svn_lib/database.py @@ -104,7 +104,7 @@ class Database: # we know that for bsddb - but *not* anydbm in general - the database # consists of one file with the name we specify, rather than several # based on that name). - if mode == 'n' and anydbm._defaultmod.__name__ == 'dbhash': + if mode == DB_OPEN_NEW and anydbm._defaultmod.__name__ == 'dbhash': if os.path.isfile(filename): os.unlink(filename) self.db = anydbm.open(filename, 'c') -- 2.11.4.GIT