[Zodb-checkins] CVS: Zope/lib/python/ZConfig - SchemaContext.py:1.1.2.5

Fred L. Drake, Jr. fred@zope.com
Tue, 26 Nov 2002 12:09:12 -0500


Update of /cvs-repository/Zope/lib/python/ZConfig
In directory cvs.zope.org:/tmp/cvs-serv14747

Modified Files:
      Tag: chrism-install-branch
	SchemaContext.py 
Log Message:
Remove unused imports.
Convert imports to Python Normal Form.


=== Zope/lib/python/ZConfig/SchemaContext.py 1.1.2.4 => 1.1.2.5 ===
--- Zope/lib/python/ZConfig/SchemaContext.py:1.1.2.4	Mon Nov 25 16:42:29 2002
+++ Zope/lib/python/ZConfig/SchemaContext.py	Tue Nov 26 12:09:12 2002
@@ -14,23 +14,24 @@
 Schema context (akin to normal ZConfig Context object)
 """
 
-import os, urllib
+import Context
 import SchemaParser
-from SchemaParser import SchemaError
-from SchemaInterfaces import ISchemaContext
+
 from Common import *
-import Context
+from SchemaInterfaces import ISchemaContext
+
 
 class SchemaContext(Context.Context):
     __implements__ = ISchemaContext
+
     def load(self, url):
         if self.getConfig() is None:
-            raise SchemaError, 'No schema set on context'
+            raise SchemaParser.SchemaError, 'No schema set on context'
         return Context.Context.load(self, url)
 
     def loadfile(self, file, url=None):
         if self.getConfig() is None:
-            raise SchemaError, 'No schema set on context'
+            raise SchemaParser.SchemaError, 'No schema set on context'
         return Context.Context.loadfile(self, file, url)
 
     def loadschema(self, schema):