Skip to content

Commit 80b6c8e

Browse files
author
Alexander Smishlajev
committed
fix exception in have_backend('tsearch2')
1 parent 9bef5d5 commit 80b6c8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

roundup/backends/__init__.py

Lines changed: 3 additions & 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: __init__.py,v 1.33 2004-11-29 07:34:39 anthonybaxter Exp $
18+
# $Id: __init__.py,v 1.34 2005-01-06 17:57:05 a1s Exp $
1919

2020
'''Container for the hyperdb storage backend implementations.
2121
'''
@@ -30,6 +30,7 @@
3030
_modules = {
3131
'mysql': 'MySQLdb',
3232
'postgresql': 'psycopg',
33+
'tsearch2': 'psycopg',
3334
}
3435

3536
def get_backend(name):
@@ -43,7 +44,7 @@ def get_backend(name):
4344
try:
4445
module = __import__(module_name, vars)
4546
except:
46-
# import failed, but in versions prior to 2.4, a (broken)
47+
# import failed, but in versions prior to 2.4, a (broken)
4748
# module is left in sys.modules and package globals;
4849
# subsequent imports would succeed and get the broken module.
4950
# This no longer happens in Python 2.4 and later.

0 commit comments

Comments
 (0)