Show More
@@ -516,7 +516,7 b' def display(fp=None, format=3, data=None' | |||
|
516 | 516 | elif format == DisplayFormats.Chrome: |
|
517 | 517 | write_to_chrome(data, fp, **kwargs) |
|
518 | 518 | else: |
|
519 |
raise Exception( |
|
|
519 | raise Exception("Invalid display format") | |
|
520 | 520 | |
|
521 | 521 | if format not in (DisplayFormats.Json, DisplayFormats.Chrome): |
|
522 | 522 | fp.write(b'---\n') |
@@ -625,7 +625,7 b' def display_by_method(data, fp):' | |||
|
625 | 625 | |
|
626 | 626 | def display_about_method(data, fp, function=None, **kwargs): |
|
627 | 627 | if function is None: |
|
628 |
raise Exception( |
|
|
628 | raise Exception("Invalid function") | |
|
629 | 629 | |
|
630 | 630 | filename = None |
|
631 | 631 | if b':' in function: |
@@ -1080,7 +1080,7 b' def main(argv=None):' | |||
|
1080 | 1080 | printusage() |
|
1081 | 1081 | return 0 |
|
1082 | 1082 | else: |
|
1083 |
assert False, |
|
|
1083 | assert False, "unhandled option %s" % o | |
|
1084 | 1084 | |
|
1085 | 1085 | if not path: |
|
1086 | 1086 | print('must specify --file to load') |
General Comments 0
You need to be logged in to leave comments.
Login now