README fixes, tz cleanup
diff --git a/NEWS b/NEWS index 9836d04..f6915f4 100644 --- a/NEWS +++ b/NEWS
@@ -1,3 +1,15 @@ +Version 2.1pre +-------------- + +- New maintainer + +- Dateutil now works on Python 2.6, 2.7 and 3.2 fomr same codebase (with six) + +- https://launchpad.net/bugs/704047: Ismael Carnales' patch for a new time format + +- Small bug fixes, thanks for reporters! + + Version 2.0 -----------
diff --git a/dateutil/tz.py b/dateutil/tz.py index 9df184b..e736d58 100644 --- a/dateutil/tz.py +++ b/dateutil/tz.py
@@ -7,7 +7,7 @@ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "Simplified BSD" -from six import string_types +from six import string_types, PY3 import datetime import struct @@ -28,14 +28,13 @@ tzwin, tzwinlocal = None, None def tzname_in_python2(myfunc): - import six """Change unicode output into bytestrings in Python 2 tzname() API changed in Python 3. It used to return bytes, but was changed to unicode strings """ def inner_func(*args, **kwargs): - if six.PY3: + if PY3: return myfunc(*args, **kwargs) else: return myfunc(*args, **kwargs).encode()