Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit 5ebdae1

Browse files
committed
Another Python 3 hack for #103
1 parent f309a2a commit 5ebdae1

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

documentcloud/MultipartPostHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def http_request(self, request):
6969
except AttributeError:
7070
data = request.data
7171
if data is not None and type(data) != str:
72-
data = urllib.parse.urlencode(data, doseq)
72+
data = urllib.parse.urlencode(data, doseq).encode("utf-8")
7373
try:
7474
request.add_data(data)
7575
except AttributeError:

test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import six
1212
import random
1313
import string
14-
import hashlib
1514
import textwrap
1615
import unittest
1716
try:

tox.ini

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[tox]
2-
envlist=py26,py27,py32,py33
2+
envlist=py34
33

44
[testenv]
5-
deps=
6-
python-dateutil
7-
simplejson
8-
six
9-
commands=python test.py
5+
commands=
6+
python setup.py install
7+
python scratch.py

0 commit comments

Comments
 (0)