Lint: W605 invalid escape sequence '\^'
This commit is contained in:
@ -680,7 +680,7 @@ def get_list(zk_conn, node, state, limit, is_fuzzy=True):
|
||||
if limit and is_fuzzy:
|
||||
try:
|
||||
# Implcitly assume fuzzy limits
|
||||
if not re.match('\^.*', limit):
|
||||
if not re.match('[^].*', limit):
|
||||
limit = '.*' + limit
|
||||
if not re.match('.*\$', limit):
|
||||
limit = limit + '.*'
|
||||
|
Reference in New Issue
Block a user