Lint: W605 invalid escape sequence '\$'
This commit is contained in:
@ -79,7 +79,7 @@ def list_ova(limit, is_fuzzy=True):
|
||||
limit = '%' + limit
|
||||
else:
|
||||
limit = limit[1:]
|
||||
if not re.match('.*\$', limit):
|
||||
if not re.match('.*[$]', limit):
|
||||
limit = limit + '%'
|
||||
else:
|
||||
limit = limit[:-1]
|
||||
|
@ -106,7 +106,7 @@ def list_template(limit, table, is_fuzzy=True):
|
||||
limit = '%' + limit
|
||||
else:
|
||||
limit = limit[1:]
|
||||
if not re.match('.*\$', limit):
|
||||
if not re.match('.*[$]', limit):
|
||||
limit = limit + '%'
|
||||
else:
|
||||
limit = limit[:-1]
|
||||
@ -588,7 +588,7 @@ def list_userdata(limit, is_fuzzy=True):
|
||||
limit = '%' + limit
|
||||
else:
|
||||
limit = limit[1:]
|
||||
if not re.match('.*\$', limit):
|
||||
if not re.match('.*[$]', limit):
|
||||
limit = limit + '%'
|
||||
else:
|
||||
limit = limit[:-1]
|
||||
@ -679,7 +679,7 @@ def list_script(limit, is_fuzzy=True):
|
||||
limit = '%' + limit
|
||||
else:
|
||||
limit = limit[1:]
|
||||
if not re.match('.*\$', limit):
|
||||
if not re.match('.*[$]', limit):
|
||||
limit = limit + '%'
|
||||
else:
|
||||
limit = limit[:-1]
|
||||
@ -770,7 +770,7 @@ def list_profile(limit, is_fuzzy=True):
|
||||
limit = '%' + limit
|
||||
else:
|
||||
limit = limit[1:]
|
||||
if not re.match('.*\$', limit):
|
||||
if not re.match('.*[$]', limit):
|
||||
limit = limit + '%'
|
||||
else:
|
||||
limit = limit[:-1]
|
||||
|
Reference in New Issue
Block a user