]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix inconsistent use of tabs and spaces
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 7 Jul 2000 21:02:00 +0000 (21:02 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 7 Jul 2000 21:02:00 +0000 (21:02 +0000)
Lib/dos-8x3/rfc822-n.py
Lib/xml/sax/_exceptions.py

index ef7ab433ffb39733a21bf2479c3048d4cdcd224b..26e3a41e63f8ec58bff6ebb1b707b1ba0b678ded 100644 (file)
@@ -327,11 +327,11 @@ class Message:
         """
         raw = []
         for h in self.getallmatchingheaders(name):
-           if h[0] in ' \t':
-               raw.append(h)
-           else:
-               if raw:
-                   raw.append(', ')
+            if h[0] in ' \t':
+                raw.append(h)
+            else:
+                if raw:
+                    raw.append(', ')
                 i = string.find(h, ':')
                 if i > 0:
                     addr = h[i+1:]
@@ -832,16 +832,16 @@ def parsedate_tz(data):
     mm = _monthnames.index(mm)+1
     if mm > 12: mm = mm - 12
     if dd[-1] == ',':
-       dd = dd[:-1]
+        dd = dd[:-1]
     i = string.find(yy, ':')
     if i > 0:
-       yy, tm = tm, yy
+        yy, tm = tm, yy
     if yy[-1] == ',':
-       yy = yy[:-1]
+        yy = yy[:-1]
     if yy[0] not in string.digits:
-       yy, tz = tz, yy
+        yy, tz = tz, yy
     if tm[-1] == ',':
-       tm = tm[:-1]
+        tm = tm[:-1]
     tm = string.splitfields(tm, ':')
     if len(tm) == 2:
         [thh, tmm] = tm
index f05bd88ba8caaa0b94fc410e8b65bf7b3174b401..5ba0bea38241adcef66c1c508cd92c936538ba98 100644 (file)
@@ -22,8 +22,8 @@ class SAXException(Exception):
         self._exception = exception
 
     def getMessage(self):
-       "Return a message for this exception."
-       return self._msg
+        "Return a message for this exception."
+        return self._msg
 
     def getException(self):
         "Return the embedded exception, or None if there was none."
@@ -60,21 +60,21 @@ class SAXParseException(SAXException):
         self._locator = locator
         
     def getColumnNumber(self):
-       """The column number of the end of the text where the exception
+        """The column number of the end of the text where the exception
        occurred."""
-       return self._locator.getColumnNumber()
+        return self._locator.getColumnNumber()
 
     def getLineNumber(self):
-       "The line number of the end of the text where the exception occurred."
-       return self._locator.getLineNumber()
+        "The line number of the end of the text where the exception occurred."
+        return self._locator.getLineNumber()
 
     def getPublicId(self):
-       "Get the public identifier of the entity where the exception occurred."
-       return self._locator.getPublicId()
+        "Get the public identifier of the entity where the exception occurred."
+        return self._locator.getPublicId()
 
     def getSystemId(self):
-       "Get the system identifier of the entity where the exception occurred."
-       return self._locator.getSystemId()
+        "Get the system identifier of the entity where the exception occurred."
+        return self._locator.getSystemId()
 
     def __str__(self):
         "Create a string representation of the exception."