diff options
author | toonn <toonn@toonn.io> | 2020-07-07 22:41:06 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2020-07-07 22:41:06 +0200 |
commit | 10894de1ff5baf71151859f1a3d864997202b1a7 (patch) | |
tree | a687790ee37c220294600066bd0299cd10d08949 /ranger | |
parent | 2637329b2d8ace6231c82258e072d3f800bf637d (diff) | |
download | ranger-10894de1ff5baf71151859f1a3d864997202b1a7.tar.gz |
Fix indendation of sha512_encode
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/actions.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 854268a8..91f94f77 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -13,7 +13,6 @@ import re import shlex import shutil import string -import struct import tempfile from inspect import cleandoc from stat import S_IEXEC @@ -1050,9 +1049,11 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m @staticmethod def sha512_encode(path): stat_ = stat(path) - sha = sha512('{dev},{inode},{mtime}'.format( - dev=stat_.st_dev, inode=stat_.st_ino, mtime=stat_.st_mtime).encode( - 'utf-8', 'backslashreplace')) + sha = sha512( + '{dev},{inode},{mtime}'.format( + dev=stat_.st_dev, inode=stat_.st_ino, mtime=stat_.st_mtime + ).encode('utf-8', 'backslashreplace') + ) return '{0}.jpg'.format(sha.hexdigest()) def get_preview(self, fobj, width, height): # pylint: disable=too-many-return-statements |