Here's what i've tried: for i for i in sorted_files: for j in sorted_github_files: #pdb.set_trace() with open(f'./files/{i}') as f1: try: text1 = f1.read() except: pass with open(f'./github_files/{j}') as f2: try: text2 = f2.read() except: pass m = SequenceMatcher(None, text1, text2) print("file1:", i, "file2:", j) if m.ratio() > 0.90: os.remove(f'./github_files/{j}') break
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)