modified: btc-ticker
modified: mmgen/node_tools/Util.py
This commit is contained in:
parent
9f4f80f279
commit
bdd008f013
2 changed files with 11 additions and 4 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue