-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into release/0.10
- Loading branch information
Showing
7 changed files
with
22 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +0,0 @@ | ||
import requests | ||
|
||
from floyd.exceptions import FloydException | ||
|
||
|
||
def get_url_contents(url): | ||
""" | ||
Downloads the content of the url and returns it | ||
""" | ||
response = requests.get(url) | ||
if response.status_code == 200: | ||
return response.content.decode(response.encoding) | ||
else: | ||
raise FloydException("Failed to get contents of the url : {}".format(url)) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
import logging | ||
import sys | ||
|
||
logger = logging.getLogger('floyd') | ||
|
||
|
||
def configure_logger(verbose): | ||
log_level = logging.DEBUG if verbose else logging.INFO | ||
logging.basicConfig(format='%(message)s', level=log_level) | ||
logging.basicConfig(format='%(message)s', | ||
level=log_level, | ||
stream=sys.stdout) |
This file was deleted.
Oops, something went wrong.