mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 06:01:00 +07:00
GitOrigin-RevId: 5996a0469c811efad78b063a56fae9f197865b8f
21 lines
343 B
Python
21 lines
343 B
Python
# Emulates how symbols are exported from submodules in numpy.core.numeric
|
|
|
|
from . import submod
|
|
|
|
__all__ = ['foo']
|
|
|
|
foo = 'foo'
|
|
|
|
|
|
def extend_all(module):
|
|
existing = set(__all__)
|
|
mall = getattr(module, '__all__')
|
|
for a in mall:
|
|
if a not in existing:
|
|
__all__.append(a)
|
|
|
|
|
|
from .submod import *
|
|
|
|
extend_all(submod)
|