68 'default_value': match['value']
69 }
70
71 nextval_regex = re.search("^nextval\((?P<value>.+)\)$", value) 72 if nextval_regex:
73 match = nextval_regex.groupdict()
74 return {
68 'default_value': match['value']
69 }
70
71 nextval_regex = re.search("^nextval\((?P<value>.+)\)$", value) 72 if nextval_regex:
73 match = nextval_regex.groupdict()
74 return {
97 unresolved = names[:]
98
99 for name in unresolved:
100 regex = re.search('sso\.(?P<sso>\w+)\.(?P<token>\w+)', name)101
102 if not regex:
103 continue
97 unresolved = names[:]
98
99 for name in unresolved:
100 regex = re.search('sso\.(?P<sso>\w+)\.(?P<token>\w+)', name)101
102 if not regex:
103 continue
97 unresolved = names[:]
98
99 for name in unresolved:
100 regex = re.search('sso\.(?P<sso>\w+)\.(?P<token>\w+)', name)101
102 if not regex:
103 continue
Backslash is present in the literal string but is not a valid escape sequence. If it is intended to be an escape sequence, use the correct escape characters. If it is intended to be a literal backslash, it can either be replaced with with an escaped backslash \\
, or you can add an r
prefix to make it a "raw" string.
filepath = "C:\myfiles\run.py"
filepath = "C:\\myfiles\\run.py" # use `\\` to render one backslash
filepath = r"C:\myfiles\run.py" # use the `r` prefix to avoid unnecessary escapes