Create a six.moves.urllib namespace that resembles the Python 3 namespace
| 496 | |
| 497 | |
| 498 | class Module_six_moves_urllib(types.ModuleType): |
| 499 | |
| 500 | """Create a six.moves.urllib namespace that resembles the Python 3 namespace""" |
| 501 | __path__ = [] # mark as package |
| 502 | parse = _importer._get_module("moves.urllib_parse") |
| 503 | error = _importer._get_module("moves.urllib_error") |
| 504 | request = _importer._get_module("moves.urllib_request") |
| 505 | response = _importer._get_module("moves.urllib_response") |
| 506 | robotparser = _importer._get_module("moves.urllib_robotparser") |
| 507 | |
| 508 | def __dir__(self): |
| 509 | return ['parse', 'error', 'request', 'response', 'robotparser'] |
| 510 | |
| 511 | _importer._add_module(Module_six_moves_urllib(__name__ + ".moves.urllib"), |
| 512 | "moves.urllib") |
no test coverage detected
searching dependent graphs…