Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ python:
- 3.5
- 3.6
install:
- pip install pytz>=2010b six>=1.9.0
- pip install CodeConvert>=2.0.5 pytz>=2010b six>=1.9.0
- if [[ $TRAVIS_PYTHON_VERSION == 2.6 ]]; then pip install unittest2; fi
script:
- python test.py
3 changes: 2 additions & 1 deletion bson/codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import calendar
import pytz
from CodeConvert import CodeConvert as cc
from binascii import b2a_hex

from six import integer_types, iterkeys, text_type, PY3
Expand Down Expand Up @@ -303,7 +304,7 @@ def decode_document(data, base, as_array=False):
if PY3:
value = value.decode("utf-8")
else:
value = unicode(value)
value = cc.Convert2Unicode(value)
base += 4 + length
elif element_type == 0x03: # document
base, value = decode_document(data, base)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def run(self):
name="bson",
version="0.5.2",
packages=["bson"],
install_requires=["pytz>=2010b", "six>=1.9.0"],
install_requires=["CodeConvert>=2.0.5", "pytz>=2010b", "six>=1.9.0"],
author="Ayun Park",
author_email="iamparkayun@gmail.com",
description="BSON codec for Python",
Expand Down