summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2011-07-29 21:19:04 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2011-07-29 21:19:04 +0200
commit0058f06ba2309b3d7851e6509f70bf533258795c (patch)
tree0361f7b63d7faf44988d19e3c3fd1324106f7035
parentd83aaa24369e9a4b5531ffb90379c02a52025544 (diff)
downloadsqlparse-0058f06ba2309b3d7851e6509f70bf533258795c.tar.gz
Minor fixes to make the py3k version work again.
-rw-r--r--sqlparse/lexer.py2
-rw-r--r--tests/utils.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/sqlparse/lexer.py b/sqlparse/lexer.py
index ecfdbce..8929e3e 100644
--- a/sqlparse/lexer.py
+++ b/sqlparse/lexer.py
@@ -150,7 +150,7 @@ class LexerMeta(type):
return type.__call__(cls, *args, **kwds)
-class Lexer:
+class Lexer(object):
__metaclass__ = LexerMeta
diff --git a/tests/utils.py b/tests/utils.py
index 6135dc3..e2c01a3 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -33,6 +33,7 @@ class TestCaseBase(unittest.TestCase):
ssecond = unicode(second)
diff = difflib.ndiff(sfirst.splitlines(), ssecond.splitlines())
fp = StringIO()
- print >> fp, NL, NL.join(diff)
+ fp.write(NL)
+ fp.write(NL.join(diff))
print fp.getvalue()
raise self.failureException, fp.getvalue()