summaryrefslogtreecommitdiff
path: root/commentingapp/commenting_new.py
diff options
context:
space:
mode:
authorTrupti Rajesh Kini2016-10-25 15:22:44 +0530
committerGitHub2016-10-25 15:22:44 +0530
commitefe99ed44bdd8a2568862967577d7ccea41024d5 (patch)
tree4c26ad501f9387e3d16c389603ae1432bd2c64fd /commentingapp/commenting_new.py
parent6da84d8c334e16ebea6597d8b83d51552935ed00 (diff)
parent27d47a26dd9c7765bbfda112eddbebe8f3679460 (diff)
downloadPython-TBC-Interface-efe99ed44bdd8a2568862967577d7ccea41024d5.tar.gz
Python-TBC-Interface-efe99ed44bdd8a2568862967577d7ccea41024d5.tar.bz2
Python-TBC-Interface-efe99ed44bdd8a2568862967577d7ccea41024d5.zip
Merge pull request #41 from kinitrupti/master
Upgraded to python3
Diffstat (limited to 'commentingapp/commenting_new.py')
-rw-r--r--commentingapp/commenting_new.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/commentingapp/commenting_new.py b/commentingapp/commenting_new.py
index 33f4923..77c0fc5 100644
--- a/commentingapp/commenting_new.py
+++ b/commentingapp/commenting_new.py
@@ -3,7 +3,7 @@
import requests
import collections
import os
-from urlparse import urljoin
+from urllib.parse import urljoin
@@ -75,7 +75,7 @@ class DisqusCommenting(object):
json_like_list = []
- for thread_id in self.counter.keys(): # Find a better way to do this
+ for thread_id in list(self.counter.keys()): # Find a better way to do this
comment_list = []
payload = {"api_key": self.public_key, "thread": thread_id}
thread_url = urljoin(self.base_disqus_url,self.api_version)+"/threads/list.json"
@@ -103,4 +103,4 @@ if __name__ == "__main__":
z = x.get_thread_ids()
z1 = x.get_comments()
- print z1 # this will print out a json like list of all the urls and the comments on each url
+ print(z1) # this will print out a json like list of all the urls and the comments on each url