Code Review
/
integration
/
test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Bump pre-commit-hooks to v4.1.0
[integration/test.git]
/
csit
/
libraries
/
backuprestore
/
jsonpathl.py
diff --git
a/csit/libraries/backuprestore/jsonpathl.py
b/csit/libraries/backuprestore/jsonpathl.py
index 302c19364392306bdf0aec0fe286ddaeaf8355b9..e5953f18e62e50ca1160fae1d8f9681fc1c45e95 100644
(file)
--- a/
csit/libraries/backuprestore/jsonpathl.py
+++ b/
csit/libraries/backuprestore/jsonpathl.py
@@
-271,7
+271,7
@@
def jsonpath(obj, expr, result_type="VALUE", debug=0, use_eval=True):
def notvar(m):
return "'%s' not in __obj" % m.group(1)
- loc = re.sub("!@\.([a-zA-Z@_]+)", notvar, loc)
+ loc = re.sub(
r
"!@\.([a-zA-Z@_]+)", notvar, loc)
# replace @.name.... with __obj['name']....
# handle @.name[.name...].length