[Zope3-checkins] CVS: Packages/ZConfig - datatypes.py:1.1.2.3

Fred L. Drake, Jr. fred@zope.com
Wed, 11 Dec 2002 15:03:41 -0500


Update of /cvs-repository/Packages/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv19682

Modified Files:
      Tag: zconfig-schema-devel-branch
	datatypes.py 
Log Message:
Tolerate Python < 2.2.2.


=== Packages/ZConfig/datatypes.py 1.1.2.2 => 1.1.2.3 ===
--- Packages/ZConfig/datatypes.py:1.1.2.2	Wed Dec 11 15:02:25 2002
+++ Packages/ZConfig/datatypes.py	Wed Dec 11 15:03:40 2002
@@ -2,6 +2,12 @@
 
 import re
 
+try:
+    True
+except NameError:
+    True = 1
+    False = 0
+
 
 class TrivialConversion:
     """Datatype that exposes a conversion implemented as a function."""