aboutsummaryrefslogtreecommitdiff
path: root/commons.py
diff options
context:
space:
mode:
authorromangraef <romangraef@loves.dicksinhisan.us>2018-12-06 17:04:54 +0100
committerromangraef <romangraef@loves.dicksinhisan.us>2018-12-06 17:04:54 +0100
commitfa183aa17721e86cd44b4cf9d43917987bc074ca (patch)
tree0cdbc958e48c00f0d2d35e78b93454a8a054b889 /commons.py
parent28697e7a3bb6da16e9be331bf9576572468910d6 (diff)
downloadaoc2018-fa183aa17721e86cd44b4cf9d43917987bc074ca.tar.gz
aoc2018-fa183aa17721e86cd44b4cf9d43917987bc074ca.tar.bz2
aoc2018-fa183aa17721e86cd44b4cf9d43917987bc074ca.zip
day5
Diffstat (limited to 'commons.py')
-rw-r--r--commons.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/commons.py b/commons.py
index 2bc58c2..80181ca 100644
--- a/commons.py
+++ b/commons.py
@@ -22,7 +22,7 @@ def get_input(day: int) -> str:
if cache_file.exists():
return cache_file.read_text()
text = requests.get('http://adventofcode.com/2018/day/{}/input'.format(day),
- cookies=cookies).text
+ cookies=cookies).text.strip()
cache_file.write_text(text)
return text