Permalink
Browse files

python 3 support, version bump

  • Loading branch information...
1 parent 6eae7ed commit da940a503b2fb62f47c5d7c34970ec15f721cca4 @jdunck committed Jan 22, 2014
Showing with 9 additions and 4 deletions.
  1. +3 −1 tox.ini
  2. +6 −3 unicodecsv/__init__.py
View
@@ -1,5 +1,5 @@
[tox]
-envlist = py26, py27
+envlist = py26, py27, py33
[testenv]
commands = python setup.py test
@@ -10,3 +10,5 @@ basepython = python2.6
[testenv:py27]
basepython = python2.7
+[testenv:py33]
+basepython = python3
View
@@ -1,9 +1,12 @@
# -*- coding: utf-8 -*-
import csv
-from itertools import izip
+try:
+ from itertools import izip
+except ImportError:
+ izip = zip
#http://semver.org/
-VERSION = (0, 9, 4)
+VERSION = (0, 10, 1)
__version__ = ".".join(map(str,VERSION))
pass_throughs = [
@@ -46,7 +49,7 @@ def _stringify(s, encoding, errors):
def _stringify_list(l, encoding, errors='strict'):
try:
return [_stringify(s, encoding, errors) for s in iter(l)]
- except TypeError, e:
+ except TypeError as e:
raise csv.Error(str(e))
def _unicodify(s, encoding):

0 comments on commit da940a5

Please sign in to comment.