diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2017-06-27 11:41:04 +1000 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2017-06-27 11:41:04 +1000 |
| commit | 9d9b24e415df8bd6662595169f330038ee45d569 (patch) | |
| tree | d1798dcc729995e75a11b12b2ffaaff8193db129 /pywal | |
| parent | 277c27c98a819c8e8de9dffde07192791a0d16d4 (diff) | |
General: Add initial test.
Diffstat (limited to 'pywal')
| -rwxr-xr-x | pywal/util.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pywal/util.py b/pywal/util.py index bc385d9..67baa6a 100755 --- a/pywal/util.py +++ b/pywal/util.py @@ -8,7 +8,9 @@ import subprocess def read_file(input_file): """Read colors from a file.""" - return open(input_file).read().splitlines() + with open(input_file) as file: + colors = file.read().splitlines() + return colors def save_file(colors, export_file): |
