summaryrefslogtreecommitdiff
path: root/pywal
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-01-02 12:03:28 +1100
committerDylan Araps <dylan.araps@gmail.com>2018-01-02 12:03:28 +1100
commit55503fbc6030752de8d38122ad7ba7375a7731e9 (patch)
tree47c86a84b669ab1734ec94d0c35ab20619a51e6d /pywal
parent54486bc9054b97cef0a6904940d29b8323acc862 (diff)
util: Cleanup
Diffstat (limited to 'pywal')
-rw-r--r--pywal/util.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/pywal/util.py b/pywal/util.py
index 28048ba..b8ff682 100644
--- a/pywal/util.py
+++ b/pywal/util.py
@@ -41,24 +41,20 @@ class Color:
def read_file(input_file):
"""Read data from a file and trim newlines."""
with open(input_file, "r") as file:
- data = file.read().splitlines()
- return data
+ return file.read().splitlines()
def read_file_json(input_file):
"""Read data from a json file."""
with open(input_file, "r") as json_file:
- data = json.load(json_file)
-
- return data
+ return json.load(json_file)
def read_file_raw(input_file):
"""Read data from a file as is, don't strip
newlines or other special characters.."""
with open(input_file, "r") as file:
- data = file.readlines()
- return data
+ return file.readlines()
def save_file(data, export_file):