diff options
author | Skip Montanaro <skip@pobox.com> | 2000-07-06 03:01:40 (GMT) |
---|---|---|
committer | Skip Montanaro <skip@pobox.com> | 2000-07-06 03:01:40 (GMT) |
commit | f9059ebede7acc7d498d0703dd97adede37c5016 (patch) | |
tree | c8c83ab8776559370d71e7510c442ccedfeb0bdd | |
parent | 26a7983f086930b887731042dffb0f0899dedb81 (diff) | |
download | cpython-f9059ebede7acc7d498d0703dd97adede37c5016.zip cpython-f9059ebede7acc7d498d0703dd97adede37c5016.tar.gz cpython-f9059ebede7acc7d498d0703dd97adede37c5016.tar.bz2 |
fixed indentation in several places
-rw-r--r-- | Lib/xml/sax/xmlreader.py | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/Lib/xml/sax/xmlreader.py b/Lib/xml/sax/xmlreader.py index b66ef1c..8bc33d8 100644 --- a/Lib/xml/sax/xmlreader.py +++ b/Lib/xml/sax/xmlreader.py @@ -6,13 +6,13 @@ should be based on this code. """ class XMLReader: def __init__(self): - self._cont_handler = handler.ContentHandler() - #self._dtd_handler = handler.DTDHandler() - #self._ent_handler = handler.EntityResolver() - self._err_handler = handler.ErrorHandler() + self._cont_handler = handler.ContentHandler() + #self._dtd_handler = handler.DTDHandler() + #self._ent_handler = handler.EntityResolver() + self._err_handler = handler.ErrorHandler() def parse(self, source): - "Parse an XML document from a system identifier or an InputSource." + "Parse an XML document from a system identifier or an InputSource." raise NotImplementedError("This method must be implemented!") def getContentHandler(self): @@ -28,24 +28,24 @@ class XMLReader: return self._dtd_handler def setDTDHandler(self, handler): - "Register an object to receive basic DTD-related events." - self._dtd_handler = handler + "Register an object to receive basic DTD-related events." + self._dtd_handler = handler def getEntityResolver(self): "Returns the current EntityResolver." return self._ent_handler def setEntityResolver(self, resolver): - "Register an object to resolve external entities." - self._ent_handler = resolver + "Register an object to resolve external entities." + self._ent_handler = resolver def getErrorHandler(self): "Returns the current ErrorHandler." return self._err_handler def setErrorHandler(self, handler): - "Register an object to receive error-message events." - self._err_handler = handler + "Register an object to receive error-message events." + self._err_handler = handler def setLocale(self, locale): """Allow an application to set the locale for errors and warnings. @@ -149,20 +149,20 @@ class Locator: results are unpredictable.""" def getColumnNumber(self): - "Return the column number where the current event ends." - return -1 + "Return the column number where the current event ends." + return -1 def getLineNumber(self): - "Return the line number where the current event ends." - return -1 + "Return the line number where the current event ends." + return -1 def getPublicId(self): - "Return the public identifier for the current event." - return None + "Return the public identifier for the current event." + return None def getSystemId(self): - "Return the system identifier for the current event." - return None + "Return the system identifier for the current event." + return None # --- AttributesImpl class AttributesImpl: |