Skip to content

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


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