mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-07-18 00:45:19 +00:00
Change to raw string and add file extension to get a better match
This commit is contained in:
parent
1f8d7648b5
commit
c6c705e002
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue