[Zodb-checkins] CVS: Packages/ZConfig - loader.py:1.1.2.18

Fred L. Drake, Jr. fred@zope.com
Fri, 20 Dec 2002 16:09:52 -0500


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

Modified Files:
      Tag: zconfig-schema-devel-branch
	loader.py 
Log Message:
Reduce the crufty Python 2.1 compatibility.


=== Packages/ZConfig/loader.py 1.1.2.17 => 1.1.2.18 ===
--- Packages/ZConfig/loader.py:1.1.2.17	Thu Dec 19 16:06:09 2002
+++ Packages/ZConfig/loader.py	Fri Dec 20 16:09:51 2002
@@ -23,12 +23,6 @@
 from ZConfig import datatypes
 from ZConfig import matcher
 
-try:
-    True
-except NameError:
-    True = 1
-    False = 0
-
 
 def loadSchema(url):
     return SchemaLoader().loadURL(url)
@@ -200,7 +194,7 @@
         if self.file is not None:
             self.file.close()
             self.file = None
-            self.closed = True
+            self.closed = not 0
 
     def __getattr__(self, name):
         return getattr(self.file, name)