(module)
| 599 | return module, name |
| 600 | |
| 601 | def getmodule(module): |
| 602 | try: |
| 603 | return sys.modules[module] |
| 604 | except KeyError: |
| 605 | try: |
| 606 | with warnings.catch_warnings(): |
| 607 | action = 'always' if support.verbose else 'ignore' |
| 608 | warnings.simplefilter(action, DeprecationWarning) |
| 609 | __import__(module) |
| 610 | except AttributeError as exc: |
| 611 | if support.verbose: |
| 612 | print("Can't import module %r: %s" % (module, exc)) |
| 613 | raise ImportError |
| 614 | except ImportError as exc: |
| 615 | if support.verbose: |
| 616 | print(exc) |
| 617 | raise |
| 618 | return sys.modules[module] |
| 619 | |
| 620 | def getattribute(module, name): |
| 621 | obj = getmodule(module) |
no test coverage detected
searching dependent graphs…