From c977e3402388660fa764c5c3d33bb2f71eac9cce Mon Sep 17 00:00:00 2001 From: changeling Date: Tue, 14 May 2019 13:42:28 -0500 Subject: [PATCH] Refactor residual .format()s to f-strings. Replace .format() with f-string in ast.py and lexer.py. --- graphql/language/ast.py | 2 +- graphql/language/lexer.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/graphql/language/ast.py b/graphql/language/ast.py index 7ab6e0d7..bdedb3f8 100644 --- a/graphql/language/ast.py +++ b/graphql/language/ast.py @@ -83,7 +83,7 @@ def __str__(self): def __repr__(self): """Print a simplified form when appearing in repr() or inspect().""" - return "".format(self.start, self.end) + return f"" def __inspect__(self): return repr(self) diff --git a/graphql/language/lexer.py b/graphql/language/lexer.py index 28f014a8..fd7ab48d 100644 --- a/graphql/language/lexer.py +++ b/graphql/language/lexer.py @@ -61,7 +61,7 @@ def __str__(self): def __repr__(self): """Print a simplified form when appearing in repr() or inspect().""" - return "".format(self.desc, self.line, self.column) + return f"" def __inspect__(self): return repr(self)