2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-18 16:06:30 +08:00
This commit is contained in:
Sebastien Bourdeauducq 2022-07-21 11:58:25 +08:00
parent de6f44467f
commit 560b7a5448

View File

@ -485,7 +485,7 @@ def is_experiment(o):
def is_public_experiment(o): def is_public_experiment(o):
"""Checks if a Pyhton object is a top-level, """Checks if a Python object is a top-level,
non underscore-prefixed, experiment class. non underscore-prefixed, experiment class.
""" """
return is_experiment(o) and not o.__name__.startswith("_") return is_experiment(o) and not o.__name__.startswith("_")