Skip to content

Commit f2169f9

Browse files
committed
support for python 3
1 parent 55e8048 commit f2169f9

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

hackpad_api/hackpad.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import time
99

1010
from requests_oauthlib import OAuth1Session
11-
from urlparse import urljoin
11+
from urllib.parse import urljoin
1212

1313
class Hackpad(object):
1414
def __init__(self, api_domain='hackpad.com', sub_domain='', consumer_key='', consumer_secret=''):
@@ -141,12 +141,12 @@ def do_api_request(self, path, method, params={}, body='', content_type=None):
141141
hackpad = r.json()
142142
else:
143143
r = hackpad_api.get(path, headers=headers, params=params)
144-
144+
145145
try:
146146
hackpad = r.json()
147147
except:
148148
hackpad = r.content
149149
except:
150-
print sys.exc_info()[0]
151-
150+
print(sys.exc_info()[0])
151+
152152
return hackpad

requirements.txt

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
argparse==1.2.1
2-
httplib2==0.8
3-
requests_oauthlib==0.4.2
4-
requests==2.2.1
5-
wsgiref==0.1.2
1+
certifi==2017.4.17
2+
chardet==3.0.4
3+
httplib2==0.10.3
4+
idna==2.5
5+
oauthlib==2.0.2
6+
packaging==16.8
7+
pyparsing==2.2.0
8+
requests==2.18.1
9+
requests-oauthlib==0.8.0
10+
six==1.10.0
11+
urllib3==1.21.1

0 commit comments

Comments
 (0)