Show More
@@ -277,7 +277,11 b' If no filename is given, or if filename is -, read standard input."""' | |||||
277 | if fname == '-': |
|
277 | if fname == '-': | |
278 | stream = sys.stdin |
|
278 | stream = sys.stdin | |
279 | else: |
|
279 | else: | |
280 | stream = file(fname) |
|
280 | try: | |
|
281 | stream = file(fname) | |||
|
282 | except IOError,msg: | |||
|
283 | print >> sys.stderr, msg | |||
|
284 | sys.exit(1) | |||
281 |
|
285 | |||
282 | parser = Parser() |
|
286 | parser = Parser() | |
283 |
|
287 |
General Comments 0
You need to be logged in to leave comments.
Login now