(fname)
| 46 | # open a file & return the file object; gripe and return 0 if it |
| 47 | # couldn't be opened |
| 48 | def fopen(fname): |
| 49 | try: |
| 50 | return open(fname) |
| 51 | except IOError as detail: |
| 52 | return fail("couldn't open " + fname + ": " + str(detail)) |
| 53 | |
| 54 | # open two files & spray the diff to stdout; return false iff a problem |
| 55 | def fcompare(f1name, f2name): |