Skip to content

Commit 5aea249

Browse files
committed
Fix bug encountered in set patmap
The code is I think a holdover from some earlier code that no longer exists.
1 parent 5060e1e commit 5aea249

2 files changed

Lines changed: 2 additions & 88 deletions

File tree

admin-tools/how-to-make-a-release.md

Lines changed: 0 additions & 86 deletions
This file was deleted.

trepan/processor/cmdproc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ def print_location(proc_obj):
212212
tempdir=proc_obj.settings("tempdir"),
213213
)
214214
pyficache.remap_file(filename, remapped)
215-
filename, lineno = pyficache.unmap_file_line(filename, lineno)
215+
filename = remapped
216+
lineno = pyficache.unmap_file_line(filename, lineno)
216217
pass
217218
pass
218219
elif "<string>" == filename:
@@ -460,7 +461,6 @@ def add_preloop_hook(self, hook, position=-1, nodups=True):
460461
return True
461462

462463
def add_remap_pat(self, pat, replace, clear_remap=True):
463-
self.remap_re_hash[re.compile(pat)] = (pat, replace)
464464
pyficache.main.add_remap_pat(pat, replace, clear_remap)
465465
if clear_remap:
466466
self.file2file_remap = {}

0 commit comments

Comments
 (0)