equal
deleted
inserted
replaced
49 facts = [] |
49 facts = [] |
50 if isfile: |
50 if isfile: |
51 if opts.type: |
51 if opts.type: |
52 facts.append('file') |
52 facts.append('file') |
53 if opts.hexdump or opts.dump or opts.md5: |
53 if opts.hexdump or opts.dump or opts.md5: |
54 content = file(f, 'rb').read() |
54 content = open(f, 'rb').read() |
55 elif islink: |
55 elif islink: |
56 if opts.type: |
56 if opts.type: |
57 facts.append('link') |
57 facts.append('link') |
58 content = os.readlink(f) |
58 content = os.readlink(f) |
59 elif isstdin: |
59 elif isstdin: |