Skip to content

Commit 0e9f669

Browse files
committed
PYTHON-673 - Add a few things back to py3compat temporarily
1 parent 99e792b commit 0e9f669

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bson/py3compat.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def reraise(exctype, value, trace=None):
4949
text_type = str
5050
string_type = str
5151
integer_types = int
52+
next_item = "__next__"
5253

5354
else:
5455
try:
@@ -81,3 +82,6 @@ def iteritems(d):
8182
string_type = basestring
8283
text_type = unicode
8384
integer_types = (int, long)
85+
next_item = "next"
86+
87+
string_types = (binary_type, text_type)

0 commit comments

Comments
 (0)