summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2013-12-25 14:38:49 -0800
committerMarc Abramowitz <marc@marc-abramowitz.com>2013-12-25 14:38:49 -0800
commit1fefc695f8cdb3f317b27171df135af9b683ea12 (patch)
treef41a7c811cd0fb2aca04f6874685e44ef700247d
parentd8af256db43d1157d197658f760fedc69ca91ca9 (diff)
downloadsix-1fefc695f8cdb3f317b27171df135af9b683ea12.tar.gz
Rename LazyModule to _LazyModule to reflect private nature
-rw-r--r--six.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/six.py b/six.py
index 999faa6..8d0205e 100644
--- a/six.py
+++ b/six.py
@@ -105,10 +105,10 @@ class MovedModule(_LazyDescr):
return _import_module(self.mod)
-class LazyModule(types.ModuleType):
+class _LazyModule(types.ModuleType):
def __init__(self, name):
- super(LazyModule, self).__init__(name)
+ super(_LazyModule, self).__init__(name)
self.__doc__ = self.__class__.__doc__
def __dir__(self):
@@ -146,7 +146,7 @@ class MovedAttribute(_LazyDescr):
-class _MovedItems(LazyModule):
+class _MovedItems(_LazyModule):
"""Lazy loading of moved objects"""
@@ -219,7 +219,7 @@ moves = sys.modules[__name__ + ".moves"] = _MovedItems(__name__ + ".moves")
-class Module_six_moves_urllib_parse(LazyModule):
+class Module_six_moves_urllib_parse(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_parse"""
@@ -249,7 +249,7 @@ sys.modules[__name__ + ".moves.urllib_parse"] = Module_six_moves_urllib_parse(__
sys.modules[__name__ + ".moves.urllib.parse"] = Module_six_moves_urllib_parse(__name__ + ".moves.urllib.parse")
-class Module_six_moves_urllib_error(LazyModule):
+class Module_six_moves_urllib_error(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_error"""
@@ -268,7 +268,7 @@ sys.modules[__name__ + ".moves.urllib_error"] = Module_six_moves_urllib_error(__
sys.modules[__name__ + ".moves.urllib.error"] = Module_six_moves_urllib_error(__name__ + ".moves.urllib.error")
-class Module_six_moves_urllib_request(LazyModule):
+class Module_six_moves_urllib_request(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_request"""
@@ -317,7 +317,7 @@ sys.modules[__name__ + ".moves.urllib_request"] = Module_six_moves_urllib_reques
sys.modules[__name__ + ".moves.urllib.request"] = Module_six_moves_urllib_request(__name__ + ".moves.urllib.request")
-class Module_six_moves_urllib_response(LazyModule):
+class Module_six_moves_urllib_response(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_response"""
@@ -337,7 +337,7 @@ sys.modules[__name__ + ".moves.urllib_response"] = Module_six_moves_urllib_respo
sys.modules[__name__ + ".moves.urllib.response"] = Module_six_moves_urllib_response(__name__ + ".moves.urllib.response")
-class Module_six_moves_urllib_robotparser(LazyModule):
+class Module_six_moves_urllib_robotparser(_LazyModule):
"""Lazy loading of moved objects in six.moves.urllib_robotparser"""