diff options
author | Anthony Baxter <anthonybaxter@gmail.com> | 2006-03-20 07:10:01 (GMT) |
---|---|---|
committer | Anthony Baxter <anthonybaxter@gmail.com> | 2006-03-20 07:10:01 (GMT) |
commit | 46fa48ab04b68e34884264db5be1082747da379a (patch) | |
tree | 894db3889849e7bfb77aed9c102c33195e853171 /Lib/email/__init__.py | |
parent | d5a375496ed4be5ba2059b0b8342ec5bf38d04a6 (diff) | |
download | cpython-46fa48ab04b68e34884264db5be1082747da379a.zip cpython-46fa48ab04b68e34884264db5be1082747da379a.tar.gz cpython-46fa48ab04b68e34884264db5be1082747da379a.tar.bz2 |
whitespace n11n
Diffstat (limited to 'Lib/email/__init__.py')
-rw-r--r-- | Lib/email/__init__.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/email/__init__.py b/Lib/email/__init__.py index 0a6a72d..f01260f 100644 --- a/Lib/email/__init__.py +++ b/Lib/email/__init__.py @@ -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 = [ |