comparison roundup/backends/__init__.py @ 2978:4fcb61bfe4ec

clean up comment
author Anthony Baxter <anthonybaxter@users.sourceforge.net>
date Mon, 29 Nov 2004 07:34:39 +0000
parents e03ef8a8df7f
children b286373a517f
comparison
equal deleted inserted replaced
2977:9c8de04a76b1 2978:4fcb61bfe4ec
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: __init__.py,v 1.32 2004-11-29 02:07:59 anthonybaxter Exp $ 18 # $Id: __init__.py,v 1.33 2004-11-29 07:34:39 anthonybaxter Exp $
19 19
20 '''Container for the hyperdb storage backend implementations. 20 '''Container for the hyperdb storage backend implementations.
21 ''' 21 '''
22 __docformat__ = 'restructuredtext' 22 __docformat__ = 'restructuredtext'
23 23
43 try: 43 try:
44 module = __import__(module_name, vars) 44 module = __import__(module_name, vars)
45 except: 45 except:
46 # import failed, but in versions prior to 2.4, a (broken) 46 # import failed, but in versions prior to 2.4, a (broken)
47 # module is left in sys.modules and package globals; 47 # module is left in sys.modules and package globals;
48 # next import would success although the module is unusable 48 # subsequent imports would succeed and get the broken module.
49 # This no longer happens in Python 2.4 and later.
49 if sys.version_info < (2, 4): 50 if sys.version_info < (2, 4):
50 del sys.modules['.'.join((__name__, module_name))] 51 del sys.modules['.'.join((__name__, module_name))]
51 del vars[module_name] 52 del vars[module_name]
52 raise 53 raise
53 else: 54 else:

Roundup Issue Tracker: http://roundup-tracker.org/