summaryrefslogtreecommitdiff
path: root/sqlparse/lexer.py
diff options
context:
space:
mode:
Diffstat (limited to 'sqlparse/lexer.py')
-rw-r--r--sqlparse/lexer.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py
index 7408e01..aafb55f 100644
--- a/sqlparse/lexer.py
+++ b/sqlparse/lexer.py
@@ -99,14 +99,12 @@ class Lexer(metaclass=_LexerSingletonMetaclass):
text = text.decode(encoding)
else:
try:
- text = text.decode("utf-8")
+ text = text.decode('utf-8')
except UnicodeDecodeError:
- text = text.decode("unicode-escape")
+ text = text.decode('unicode-escape')
else:
- raise TypeError(
- "Expected text or file-like object, got {!r}"
- .format(type(text))
- )
+ raise TypeError("Expected text or file-like object, got {!r}".
+ format(type(text)))
iterable = enumerate(text)
for pos, char in iterable: