Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kenchou committed Sep 11, 2014
1 parent f220855 commit 31b4307
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gfwlist2pac.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ def fetchGFWList(config):
urllib2.install_opener(opener)

if config['debug']:
http_handler = urllib2.HTTPHandler(debuglevel=int(config['debug']))
https_handler = urllib2.HTTPSHandler(debuglevel=int(config['debug']))
opener = urllib2.build_opener(http_handler, https_handler)
httpHandler = urllib2.HTTPHandler(debuglevel=1)
httpsHandler = urllib2.HTTPSHandler(debuglevel=1)
opener = urllib2.build_opener(httpHandler, httpsHandler)
urllib2.install_opener(opener)

response = urllib2.urlopen(config['gfwUrl'])
Expand Down

0 comments on commit 31b4307

Please sign in to comment.