whitespace n11n
This commit is contained in:
parent
d5a375496e
commit
46fa48ab04
|
@ -72,14 +72,14 @@ def message_from_file(fp, *args, **kws):
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
class LazyImporter(object):
|
class LazyImporter(object):
|
||||||
def __init__(self, module_name):
|
def __init__(self, module_name):
|
||||||
self.__name__ = 'email.' + module_name
|
self.__name__ = 'email.' + module_name
|
||||||
|
|
||||||
def __getattr__(self, name):
|
def __getattr__(self, name):
|
||||||
__import__(self.__name__)
|
__import__(self.__name__)
|
||||||
mod = sys.modules[self.__name__]
|
mod = sys.modules[self.__name__]
|
||||||
self.__dict__.update(mod.__dict__)
|
self.__dict__.update(mod.__dict__)
|
||||||
return getattr(mod, name)
|
return getattr(mod, name)
|
||||||
|
|
||||||
|
|
||||||
_LOWERNAMES = [
|
_LOWERNAMES = [
|
||||||
|
|
|
@ -18,9 +18,9 @@ except AttributeError:
|
||||||
class Wait3Test(ForkWait):
|
class Wait3Test(ForkWait):
|
||||||
def wait_impl(self, cpid):
|
def wait_impl(self, cpid):
|
||||||
while 1:
|
while 1:
|
||||||
spid, status, rusage = os.wait3(0)
|
spid, status, rusage = os.wait3(0)
|
||||||
if spid == cpid:
|
if spid == cpid:
|
||||||
break
|
break
|
||||||
self.assertEqual(spid, cpid)
|
self.assertEqual(spid, cpid)
|
||||||
self.assertEqual(status, 0, "cause = %d, exit = %d" % (status&0xff, status>>8))
|
self.assertEqual(status, 0, "cause = %d, exit = %d" % (status&0xff, status>>8))
|
||||||
self.assertTrue(rusage)
|
self.assertTrue(rusage)
|
||||||
|
|
Loading…
Reference in New Issue