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

wants to merge 2 commits into from

Conversation

libbyh
Copy link

@libbyh libbyh commented Jun 14, 2017

Fix two issues in move from Python 2.7 to Python 3.5

  • call print as function
  • use urllib.request instead of urllib2

@@ -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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants