mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-25 09:23:08 +01:00
Fix lint errors.
License: MIT Signed-off-by: David Grisham <dgrisham@mines.edu>
This commit is contained in:
parent
b08648c720
commit
51af3c1e03
@ -4,7 +4,6 @@ Generate a palette using various backends.
|
||||
import logging
|
||||
import os
|
||||
import random
|
||||
import re
|
||||
import sys
|
||||
|
||||
from . import theme
|
||||
|
@ -182,9 +182,11 @@ def get_pid(name):
|
||||
|
||||
|
||||
def hashf(fpath):
|
||||
"""Get the md5 hash of a file."""
|
||||
return hashlib.md5(file_bytes(open(fpath, 'rb'))).hexdigest()
|
||||
|
||||
|
||||
def file_bytes(fpath):
|
||||
"""Helper function to read file."""
|
||||
with fpath:
|
||||
return fpath.read()
|
||||
|
Loading…
Reference in New Issue
Block a user