Skip to content

Commit

Permalink
fix: raw string usage in regex (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: Laurent Riviere <[email protected]>
  • Loading branch information
superlevure and superlevure authored Dec 5, 2022
1 parent 1fb76c3 commit c0295ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene_federation/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def convert_fields(schema: Schema, fields: list[str]) -> str:
def field_to_string(field) -> str:
str_field = print_fields(field)
# Remove blocks added by `print_block`
block_match = re.match(" \{\n(?P<field_str>.*)\n\}", str_field, flags=re.DOTALL)
block_match = re.match(r" \{\n(?P<field_str>.*)\n\}", str_field, flags=re.DOTALL)
if block_match:
str_field = block_match.groups()[0]
return str_field
Expand Down

0 comments on commit c0295ac

Please sign in to comment.