Hi Ishaan,
the test suite runs fine with two changes in the source code (I've
copied the patch below).
I don't have any concerns to apply this patch to the code base since
the changes are really minimal and don't have any side-effects.
However, there will be no guarantee that sqlparse will remain
compatible with Python 2.4. The main focus is on supporting Python 2.7
and Python 3.
The 0.1.x series will be compatible with Python >= 2.5 and Python >=
3.2. If we drop "official" support for Python 2.5 and 2.6 in 0.2.x is
not decided yet.
Best regards, Andi
vvv------------------------------------------
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
diff --git a/tox.ini b/tox.ini
index fe2a7de..eebfa44 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist=py25,py26,py27,pypy,py32
+envlist=py24,py25,py26,py27,pypy,py32
[testenv]
deps=
^^^---------------------
> --
> You received this message because you are subscribed to the Google Groups
> "sqlparse" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
sqlparse+u...@googlegroups.com.
> To post to this group, send email to
sqlp...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sqlparse?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>