]> granicus.if.org Git - python/commitdiff
whitespace n11n
authorAnthony Baxter <anthonybaxter@gmail.com>
Mon, 20 Mar 2006 07:10:01 +0000 (07:10 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Mon, 20 Mar 2006 07:10:01 +0000 (07:10 +0000)
Lib/email/__init__.py
Lib/test/test_wait3.py

index 0a6a72de80fad5e4e4156a4858714230a271883d..f01260f57f52366a6f78ae4c2face64fb27dcdb9 100644 (file)
@@ -72,14 +72,14 @@ def message_from_file(fp, *args, **kws):
 import sys
 
 class LazyImporter(object):
-  def __init__(self, module_name):
-      self.__name__ = 'email.' + module_name
-
-  def __getattr__(self, name):
-      __import__(self.__name__)
-      mod = sys.modules[self.__name__]
-      self.__dict__.update(mod.__dict__)
-      return getattr(mod, name)
+    def __init__(self, module_name):
+        self.__name__ = 'email.' + module_name
+
+    def __getattr__(self, name):
+        __import__(self.__name__)
+        mod = sys.modules[self.__name__]
+        self.__dict__.update(mod.__dict__)
+        return getattr(mod, name)
 
 
 _LOWERNAMES = [
index a1cbd7b8458a379644acf1486a41ed44e4350201..f6a41a698cb0d5a90cc241b046a4e7890554eba2 100644 (file)
@@ -18,9 +18,9 @@ except AttributeError:
 class Wait3Test(ForkWait):
     def wait_impl(self, cpid):
         while 1:
-           spid, status, rusage = os.wait3(0)
-           if spid == cpid:
-               break
+            spid, status, rusage = os.wait3(0)
+            if spid == cpid:
+                break
         self.assertEqual(spid, cpid)
         self.assertEqual(status, 0, "cause = %d, exit = %d" % (status&0xff, status>>8))
         self.assertTrue(rusage)