diff options
author | Andi Albrecht <albrecht.andi@gmail.com> | 2013-02-28 08:22:45 +0100 |
---|---|---|
committer | Andi Albrecht <albrecht.andi@gmail.com> | 2013-02-28 08:22:45 +0100 |
commit | 58134785ce80f43529c328e1c36a45739f3d84eb (patch) | |
tree | 6e55f250dcfe95c090792415436cad6861592f30 /sqlparse/sql.py | |
parent | 2fb3665eafbe71b886211b3bf0461bd201748194 (diff) | |
download | sqlparse-58134785ce80f43529c328e1c36a45739f3d84eb.tar.gz |
Add minimal changes to support Python 2.4.
Fair warning: Support for Python 2.4 may be dropped at any time. But as long as the changes are
that minimal and have no significant side-effects we can keep up the compatibility.
Diffstat (limited to 'sqlparse/sql.py')
-rw-r--r-- | sqlparse/sql.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 |