Commit d7ce1b5d authored by Tres Seaver's avatar Tres Seaver

Add support for Python 3.2.

parent 5986a4db
CHANGES CHANGES
======= =======
Unreleased
----------
- Added support for Python 3.2 / 3.3.
4.0.0a1 (2012-11-19) 4.0.0a1 (2012-11-19)
-------------------- --------------------
......
...@@ -28,6 +28,7 @@ Programming Language :: Python ...@@ -28,6 +28,7 @@ Programming Language :: Python
Programming Language :: Python :: 2.6 Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7 Programming Language :: Python :: 2.7
Programming Language :: Python :: 3 Programming Language :: Python :: 3
Programming Language :: Python :: 3.2
Programming Language :: Python :: 3.3 Programming Language :: Python :: 3.3
Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: CPython
Topic :: Database Topic :: Database
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
import sys import sys
PY3 = sys.version_info[0] >= 3 PY3 = sys.version_info[0] >= 3
PY32 = sys.version_info[:2] == (3, 2)
if PY3: if PY3:
from pickle import Pickler, Unpickler as _Unpickler, dump, dumps, loads from pickle import Pickler, Unpickler as _Unpickler, dump, dumps, loads
...@@ -39,7 +40,11 @@ from ZODB._compat import BytesIO ...@@ -39,7 +40,11 @@ from ZODB._compat import BytesIO
if PY3: if PY3:
import _thread as thread import _thread as thread
from threading import get_ident if PY32:
from threading import _get_ident as get_ident
else:
from threading import get_ident
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment