yml2c
changeset 34 d9eaf22f13ea
parent 32 2b7b48758eaa
child 35 5414b157613a
equal deleted inserted replaced
33:12c0bdcb709d 34:d9eaf22f13ea
    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: