tweksteen/burst — pull request #2 by unintendedquine (2014-04-22 13:24:36+00:00)
Title: fixed issue with create() when scheme not provided. unclear what the pro...

[hax@metaverse burst]$ burst
_ _
| |__ _ _ _ _ __| |_
| '_ \ || | '_(_-< _|
|_.__/\_,_|_| /__/\__|

>>> c('www.google.com')
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/burst/http.py", line 376, in create
""".format(url, host))
File "/usr/lib/python2.7/site-packages/burst/http.py", line 67, in __init__
raise BurstException("No hostname: " + str(url))
BurstException: No hostname: www.google.com

Unclear that missing scheme is the problem. Modified so

>>> c('www.google.com')
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/site-packages/burst/http.py", line 378, in create
""".format(url, host))
File "/usr/lib/python2.7/site-packages/burst/http.py", line 65, in __init__
raise BurstException("No scheme provided (http:// or https://): " + str(url)) #could probably just default to http://
BurstException: No scheme provided (http:// or https://): www.google.com