Skip to content

Commit 13b0c37

Browse files
author
Richard Jones
committed
don't double-close
1 parent 0146c24 commit 13b0c37

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

roundup/backends/back_anydbm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.92 2002-11-06 11:38:42 richard Exp $
18+
#$Id: back_anydbm.py,v 1.93 2002-11-28 07:02:23 richard Exp $
1919
'''
2020
This module defines a backend that saves the hyperdatabase in a database
2121
chosen by anydbm. It is guaranteed to always be available in python
@@ -1423,7 +1423,6 @@ def lookup(self, keyvalue):
14231423
if node.has_key(self.db.RETIRED_FLAG):
14241424
continue
14251425
if node[self.key] == keyvalue:
1426-
cldb.close()
14271426
return nodeid
14281427
finally:
14291428
cldb.close()

0 commit comments

Comments
 (0)