aboutsummaryrefslogtreecommitdiff
path: root/commons.py
diff options
context:
space:
mode:
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