Change to raw string and add file extension to get a better match

This commit is contained in:
Lukas Klenk 2022-03-23 12:43:48 +00:00
parent 1f8d7648b5
commit c6c705e002

View file

@ -20,7 +20,7 @@ if pycompat.PY2:
ipython_filename_pattern = re.compile('^<ipython-input-([0-9]+)-.*>$')
ansible_filename_pattern = re.compile('^(/.+zip)/(ansible/modules/.+)$')
ansible_filename_pattern = re.compile(r'^(/.+\.zip)/(ansible/modules/.+\.py)$')
def get_local_reprs(frame, watch=(), custom_repr=(), max_length=None, normalize=False):