mod.{subname} = submod
(mod, submod, fullname, subname)
| 191 | return m |
| 192 | |
| 193 | def add_submodule(mod, submod, fullname, subname): |
| 194 | """mod.{subname} = submod""" |
| 195 | if mod is None: |
| 196 | return #Nothing to do here. |
| 197 | |
| 198 | if submod is None: |
| 199 | submod = sys.modules[fullname] |
| 200 | |
| 201 | setattr(mod, subname, submod) |
| 202 | |
| 203 | return |
| 204 | |
| 205 | def ensure_fromlist(mod, fromlist, buf, recursive): |
| 206 | """Handle 'from module import a, b, c' imports.""" |
no outgoing calls
no test coverage detected
searching dependent graphs…