forked from M-Labs/artiq
1
0
Fork 0

master: do not scan experiments starting with '_'

This commit is contained in:
Sebastien Bourdeauducq 2015-07-29 23:29:07 +08:00
parent a8c13cb7de
commit 86fef7b53b
1 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,8 @@ class DummyPDB:
def examine(dmgr, pdb, rdb, file): def examine(dmgr, pdb, rdb, file):
module = file_import(file) module = file_import(file)
for class_name, exp_class in module.__dict__.items(): for class_name, exp_class in module.__dict__.items():
if class_name[0] == "_":
continue
if is_experiment(exp_class): if is_experiment(exp_class):
if exp_class.__doc__ is None: if exp_class.__doc__ is None:
name = class_name name = class_name