/[opental]/opental/pax/backwards_compatibility.py
ViewVC logotype

Diff of /opental/pax/backwards_compatibility.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by lalo, Tue Jun 25 00:40:12 2002 UTC revision 1.3 by lalo, Wed Jan 29 22:33:04 2003 UTC
# Line 2  Line 2 
2  # developed by Lalo Martins <lalo@laranja.org>  # developed by Lalo Martins <lalo@laranja.org>
3  # this file is placed on public domain  # this file is placed on public domain
4    
5  from sys import version  from sys import version, modules
6    
7  if version >= '2.2' and version < '2.3':  if version >= '2.2' and version < '2.3':
8      from backwards_compatibility_2_2 import *      from backwards_compatibility_2_2 import *
# Line 23  except: Line 23  except:
23              r.append((index, thing[index]))              r.append((index, thing[index]))
24          return r          return r
25    
26  del version  try:
27        bool
28    except NameError:
29        def bool(value):
30            return not not value
31    
32    if version < '2.3':
33        import _pax_sets as sets
34        modules['sets'] = sets
35    else:
36        import sets
37    
38    del version, modules

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26