Show More
@@ -88,9 +88,11 b' def visit(opts, filenames, outfile):' | |||||
88 | if opts.newer: |
|
88 | if opts.newer: | |
89 | # mtime might be in whole seconds so newer file might be same |
|
89 | # mtime might be in whole seconds so newer file might be same | |
90 | if stat.st_mtime >= os.stat(opts.newer).st_mtime: |
|
90 | if stat.st_mtime >= os.stat(opts.newer).st_mtime: | |
91 |
facts.append(b'newer than %s' % opts.newer |
|
91 | facts.append(b'newer than %s' % opts.newer.encode( | |
|
92 | 'utf8', 'replace')) | |||
92 | else: |
|
93 | else: | |
93 |
facts.append(b'older than %s' % opts.newer |
|
94 | facts.append(b'older than %s' % opts.newer.encode( | |
|
95 | 'utf8', 'replace')) | |||
94 | if opts.md5 and content is not None: |
|
96 | if opts.md5 and content is not None: | |
95 | h = hashlib.md5(content) |
|
97 | h = hashlib.md5(content) | |
96 | facts.append(b'md5=%s' % binascii.hexlify(h.digest())[:opts.bytes]) |
|
98 | facts.append(b'md5=%s' % binascii.hexlify(h.digest())[:opts.bytes]) |
General Comments 0
You need to be logged in to leave comments.
Login now