Skip to content

Commit

Permalink
Python 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
execveat committed Oct 23, 2023
1 parent 17df129 commit a515d1b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gqlspection/GQLSubQuery.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


# TODO: Figure out if it's better to split this monstrosity in two classes
@python_2_unicode_compatible
class QueryBuilder(object):
def __init__(self, query, indent=4):
# Used for building the query string
Expand Down Expand Up @@ -57,7 +56,7 @@ def close_brace(self):
def add_field(self, field, args=None):
line = field
if args:
line += '(' + ', '.join(f'{k}: {v}' for k, v in args.items()) + ')'
line += '(' + ', '.join(['{k}: {v}'.format(k=k, v=v) for k, v in args.items()]) + ')'
self.add_line(line)

def build(self):
Expand Down

0 comments on commit a515d1b

Please sign in to comment.