Skip to content
Snippets Groups Projects
Unverified Commit 772ca534 authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony Committed by GitHub
Browse files

Use a raw string for regex string

parent 3369c857
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ def get_builtin_argspec(builtin): ...@@ -71,7 +71,7 @@ def get_builtin_argspec(builtin):
if not doc_string: if not doc_string:
return None return None
func_descriptor = doc_string.split('\n')[0].strip() func_descriptor = doc_string.split('\n')[0].strip()
if re.search(builtin.__name__ + "\([\[\*a-zA-Z_].*\)", func_descriptor): if re.search(builtin.__name__ + r"\([\[\*a-zA-Z_].*\)", func_descriptor):
args_string = func_descriptor[func_descriptor.find('(') + 1:func_descriptor.rfind(')')] args_string = func_descriptor[func_descriptor.find('(') + 1:func_descriptor.rfind(')')]
all_args_list = args_string.split(', ') all_args_list = args_string.split(', ')
args = [] args = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment