command_line support (#18)
* Update wrapper.py * entry points cli * Suppress the urllib2/3 Exception * rm cli code, will create a new cli.py file * Create cli.py * update cli entry pts * Update cli.py * Update cli.py * import print_function * Update cli.py * Update cli.py * Delete pypi_uploader.sh * resolve conflicts with the master * update the test ; resolve the conflicts * decrease code complexity * cli method changed to main * get is not for just local usage * get method should be available from interface * get is used in the interface * Update cli.py
This commit is contained in:
@@ -89,7 +89,7 @@ class Url:
|
||||
header = _get_response(req).headers
|
||||
return "https://" + _archive_url_parser(header)
|
||||
|
||||
def _get(self, url="", user_agent="", encoding=""):
|
||||
def get(self, url="", user_agent="", encoding=""):
|
||||
"""Return the source code of the supplied URL.
|
||||
If encoding is not supplied, it is auto-detected from the response.
|
||||
"""
|
||||
|
Reference in New Issue
Block a user