From 0e9f6692f194c918fc01acb7502467ac05df5aab Mon Sep 17 00:00:00 2001 From: Bernie Hackett Date: Tue, 22 Apr 2014 13:14:42 -0700 Subject: [PATCH] PYTHON-673 - Add a few things back to py3compat temporarily --- bson/py3compat.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bson/py3compat.py b/bson/py3compat.py index 99e90aff9..557bb770a 100644 --- a/bson/py3compat.py +++ b/bson/py3compat.py @@ -49,6 +49,7 @@ if PY3: text_type = str string_type = str integer_types = int + next_item = "__next__" else: try: @@ -81,3 +82,6 @@ else: string_type = basestring text_type = unicode integer_types = (int, long) + next_item = "next" + +string_types = (binary_type, text_type)