summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2017-02-10 15:15:29 +0100
committerLinus Nordberg <linus@nordu.net>2017-02-10 15:15:29 +0100
commitf906fa34a56185c6da816f7912d30ca6fa8be6d5 (patch)
treefa99a1e3fabdd6b61f90eefcfa9bd7089e8b64f4
parent966fe9923cbeb2080ef012ba694e03ea0c0f27b6 (diff)
Return content of result response, not the Response object.
-rwxr-xr-xtools/getconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/getconfig.py b/tools/getconfig.py
index e6277e9..6195a52 100755
--- a/tools/getconfig.py
+++ b/tools/getconfig.py
@@ -15,7 +15,7 @@ def get_file(configurl):
if configurl.startswith("https://") or configurl.startswith("http://"):
result = urlget(configurl)
result.raise_for_status()
- return result
+ return result.content
elif configurl.startswith("file:///"):
path = configurl[8:]
path = path.replace("CURRENTWORKINGDIRECTORY", os.getcwd())