Mercurial > p > roundup > code
comparison roundup/backends/__init__.py @ 159:764db91c0dea
Checks for ability to import the specific back-end module.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 30 Jul 2001 03:52:16 +0000 |
| parents | 3c5920433866 |
| children | d45384bc6420 |
comparison
equal
deleted
inserted
replaced
| 158:86ebcf734a8e | 159:764db91c0dea |
|---|---|
| 1 import back_bsddb; bsddb = back_bsddb | 1 __all__ = [] |
| 2 import back_anydbm; anydbm = back_anydbm | |
| 3 | 2 |
| 4 __all__ = ['bsddb', 'anydbm'] | 3 try: |
| 4 import back_anydbm | |
| 5 anydbm = back_anydbm | |
| 6 del back_anydbm | |
| 7 __all__.append('anydbm') | |
| 8 except: | |
| 9 pass | |
| 10 | |
| 11 try: | |
| 12 import back_bsddb | |
| 13 bsddb = back_bsddb | |
| 14 del back_bsddb | |
| 15 __all__.append('bsddb') | |
| 16 except: | |
| 17 pass | |
| 18 | |
| 19 try: | |
| 20 import back_bsddb3 | |
| 21 bsddb3 = back_bsddb3 | |
| 22 del back_bsddb3 | |
| 23 __all__.append('bsddb3') | |
| 24 except: | |
| 25 pass | |
| 26 |
