Skip to content

Commit c0295ac

Browse files
authored
fix: raw string usage in regex (#7)
Co-authored-by: Laurent Riviere <[email protected]>
1 parent 1fb76c3 commit c0295ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_federation/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def convert_fields(schema: Schema, fields: list[str]) -> str:
3636
def field_to_string(field) -> str:
3737
str_field = print_fields(field)
3838
# Remove blocks added by `print_block`
39-
block_match = re.match(" \{\n(?P<field_str>.*)\n\}", str_field, flags=re.DOTALL)
39+
block_match = re.match(r" \{\n(?P<field_str>.*)\n\}", str_field, flags=re.DOTALL)
4040
if block_match:
4141
str_field = block_match.groups()[0]
4242
return str_field

0 commit comments

Comments
 (0)