Use raw string for regex

Co-authored-by: nat <nat.noordanus@gmail.com>
This commit is contained in:
Bouke Versteegh
2020-06-04 00:02:28 +02:00
committed by boukeversteegh
co-authored by nat
parent cb00273257
commit ff14948a4e
+1 -1
View File
@@ -198,7 +198,7 @@ def generate_code(request, response):
field_wraps = ""
match_wrapper = re.match(
"\\.google\\.protobuf\\.(.+)Value", f.type_name
r"\.google\.protobuf\.(.+)Value", f.type_name
)
if match_wrapper:
wrapped_type = "TYPE_" + match_wrapper.group(1).upper()