There was an error while loading. Please reload this page.
1 parent 23596d2 commit e8c6745Copy full SHA for e8c6745
src/utils.py
@@ -16,7 +16,7 @@ def read_input(day, transformer=str, example=False):
16
else:
17
filename = f'day_{day}.txt'
18
with open(os.path.join('..', 'inputs', filename)) as input_file:
19
- return [transformer(line) for line in input_file]
+ return [transformer(line.strip()) for line in input_file]
20
except FileNotFoundError as e:
21
print(e)
22
sys.exit(1)
0 commit comments