Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py35 #85

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

py35 #85

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 Exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def main(argv):

if len(argv) == 1 and argv[0] == '-h':
f = open('exporter_help_text.txt', 'r')
print f.read()
print(f.read())
f.close()

return
Expand Down
4 changes: 2 additions & 2 deletions got3/manager/TweetManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ def getJsonReponse(tweetCriteria, refreshCursor, cookieJar, proxy):
]

if proxy:
opener = urllib2.build_opener(urllib2.ProxyHandler({'http': proxy, 'https': proxy}), urllib2.HTTPCookieProcessor(cookieJar))
opener = urllib.request.build_opener(urllib.ProxyHandler({'http': proxy, 'https': proxy}), urllib.request.HTTPCookieProcessor(cookieJar))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, hope you are doing good.

Could you please verify that your code can resolve all references, as I think ProxyHandler is a class of urllib.request and you are only using urllib.ProxyHandler

else:
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookieJar))
opener = urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cookieJar))
opener.addheaders = headers

try:
Expand Down