diff options
author | toonn <toonn@toonn.io> | 2020-10-04 19:30:35 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2020-10-04 19:30:35 +0200 |
commit | 57127d531583942430c1f86483043969a34a8c65 (patch) | |
tree | 677b70ba27f5001dd3c3cb18e3086c463858b989 | |
parent | 240d8a0ea1b82690372ba067c24a3f581a29c782 (diff) | |
parent | 11a4264a9a77faa44f0ae67add2c140bdbd4f7ab (diff) | |
download | ranger-57127d531583942430c1f86483043969a34a8c65.tar.gz |
Merge branch 'cache-hash'
-rw-r--r-- | ranger/core/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index ba31db58..adfbe94d 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -1025,7 +1025,7 @@ class Actions( # pylint: disable=too-many-instance-attributes,too-many-public-m inode = stat(path).st_ino inode_path = "{0}{1}".format(str(inode), path) if PY3: - inode_path = inode_path.encode('utf-8', 'backslashescape') + inode_path = inode_path.encode('utf-8', 'backslashreplace') return '{0}.jpg'.format(sha512(inode_path).hexdigest()) def get_preview(self, fobj, width, height): |