jeff deifik <j...@jeffunit.com> added the comment: Forgive all the print statements.
Here is the result of running this: floup:files are ['./Julio_Iglesias-Un_Hombre_Solo-05-Qu\udce9_no_se_rompa_la_noche.mp3', '/cygdrive/j/music/bea/Julio_Iglesias-Un_Hombre_Solo-05-Qu\udce9_no_se_rompa_la_noche.mp3'] l is greater than 1 i and j 0 1 two files 0 1 two files ./Jul /cygd try two files 0 1 try two files (5) ./Jul /cygd try two files exception = 'ascii' codec can't encode character '\udce9' in position 37: ordinal not in range(128) # Compare all files with the same size to each other def look_through_table(the_tab): global Options # loop through file sizes that for size in list(the_tab.keys()): files = the_tab[size] # List of all files with same size l = len(files) print('floup:files are', files) if l > 1: print('l is greater than 1') for i in range(l): for j in range(i + 1, l): print('i and j', i, j) print('two files', i, j) print('two files', files[i][0:5], files[j][0:5]) if Options.name == False or \ os.path.basename(files[i]) == os.path.basename(files[j]): # print 'cmp_two_files', files[i], files[j], \ # cmp_two_files(files[i], files[j]) try: print('try two files', i, j) print('try two files (5)', files[i][0:5], files[j][0:5]) print('try two files', files[i], files[j]) if filecmp.cmp(files[i], files[j], False): print('MATCHED') print(files[i]) print(" and ", files[j]) else: print('DID NOT MATCH') except Exception as inst: print('exception = ', inst) pass ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6909> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com