# HG changeset patch # User Jeff Hammel # Date 1477696450 25200 # Node ID bea4dd61ae45aa8963a5379f51e355e8597df858 # Parent 8275fa887f2b056edaf6a72802d84b3bb8b0e1f8 cleanup diff -r 8275fa887f2b -r bea4dd61ae45 python/find_duplicate_files.py --- a/python/find_duplicate_files.py Fri Oct 28 16:11:24 2016 -0700 +++ b/python/find_duplicate_files.py Fri Oct 28 16:14:10 2016 -0700 @@ -32,6 +32,7 @@ if not os.path.isdir(options.directory): self.error("Not a directory: {}".format(options.directory)) + def main(args=sys.argv[1:]): """CLI""" diff -r 8275fa887f2b -r bea4dd61ae45 python/urlhash.py --- a/python/urlhash.py Fri Oct 28 16:11:24 2016 -0700 +++ b/python/urlhash.py Fri Oct 28 16:14:10 2016 -0700 @@ -8,7 +8,7 @@ import urllib chars = [ chr(i) for i in range(0,255) ] -allowed = [ urllib.quote_plus(i) for i in chars +allowed = [ urllib.quote_plus(i) for i in chars if urllib.quote_plus(i) in chars ] def urlhash(len=10):