equal
deleted
inserted
replaced
15 from yml2 import ymlCStyle, comment, oldSyntax |
15 from yml2 import ymlCStyle, comment, oldSyntax |
16 import backend |
16 import backend |
17 |
17 |
18 def printInfo(option, opt_str, value, parser): |
18 def printInfo(option, opt_str, value, parser): |
19 sys.stdout.write(__doc__) |
19 sys.stdout.write(__doc__) |
|
20 sys.exit(0) |
20 |
21 |
21 def w(msg): |
22 def w(msg): |
22 if isinstance(msg, BaseException): |
23 if isinstance(msg, BaseException): |
23 msg = str(msg) + "\n" |
24 msg = str(msg) + "\n" |
24 if type(msg) is bytes: |
25 if type(msg) is bytes: |