modified: btc-ticker

modified:   mmgen/node_tools/Util.py
This commit is contained in:
philemon 2017-01-08 13:10:13 +03:00
commit bdd008f013
Signed by untrusted user who does not match committer: mmgen
GPG key ID: 62DBE9E5212F05BE
2 changed files with 11 additions and 4 deletions

View file

@ -40,7 +40,11 @@ def do_system(cmd,testing=False,shell=False):
else:
return subprocess.call((cmd if shell else cmd.split()),shell,stderr=subprocess.PIPE)
def get_url(url,gzip_ok=False,proxy=None,timeout=60,verbose=False):
def get_url(url,gzip_ok=False,proxy=None,timeout=60,verbose=False,debug=False):
if debug:
print 'get_url():'
print ' url', url
print ' gzip_ok:',gzip_ok, 'proxy:',proxy, 'timeout:',timeout, 'verbose:',verbose
import pycurl,cStringIO
c = pycurl.Curl()
c_out = cStringIO.StringIO()