Changeset View
Changeset View
Standalone View
Standalone View
bam/cli.py
| Show All 33 Lines | |||||
| del path | del path | ||||
| # -------- | # -------- | ||||
| import logging | import logging | ||||
| log = logging.getLogger("bam_cli") | log = logging.getLogger("bam_cli") | ||||
| def fatal(msg): | def fatal(msg): | ||||
| if __name__ == "__main__": | |||||
| sys.stderr.write("fatal: ") | |||||
| sys.stderr.write(msg) | |||||
| sys.stderr.write("\n") | |||||
| sys.exit(1) | |||||
| else: | |||||
| raise RuntimeError(msg) | raise RuntimeError(msg) | ||||
| class bam_config: | class bam_config: | ||||
| # fake module | # fake module | ||||
| __slots__ = () | __slots__ = () | ||||
| def __new__(cls, *args, **kwargs): | def __new__(cls, *args, **kwargs): | ||||
| raise RuntimeError("%s should not be instantiated" % cls) | raise RuntimeError("%s should not be instantiated" % cls) | ||||
| ▲ Show 20 Lines • Show All 1,962 Lines • Show Last 20 Lines | |||||