diff options
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/functions.py | 2 | ||||
| -rw-r--r-- | sqlparse/sql.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/sqlparse/functions.py b/sqlparse/functions.py index fbfcc0b..e54457e 100644 --- a/sqlparse/functions.py +++ b/sqlparse/functions.py @@ -33,7 +33,7 @@ def getcolumns(stream): return pipe(stream) -class IsType(): +class IsType(object): """Functor that return is the statement is of a specific type""" def __init__(self, type): self.type = type diff --git a/sqlparse/sql.py b/sqlparse/sql.py index 16f055b..6fb99c6 100644 --- a/sqlparse/sql.py +++ b/sqlparse/sql.py @@ -20,7 +20,10 @@ class Token(object): def __init__(self, ttype, value): self.value = value - self.normalized = value.upper() if ttype in T.Keyword else value + if ttype in T.Keyword: + self.normalized = value.upper() + else: + self.normalized = value self.ttype = ttype self.is_keyword = ttype in T.Keyword self.parent = None |
