diff options
author | LeLobster <nhoise@live.nl> | 2018-10-05 00:00:32 +0200 |
---|---|---|
committer | LeLobster <nhoise@live.nl> | 2018-10-05 00:00:32 +0200 |
commit | addcfa2823e994fbebf1a8740a9e986cc41fa340 (patch) | |
tree | a76f23a7262c054134e4a4b35c6b83c127f353a1 | |
parent | ea91c39a5b406366b80055f4570963a45335429d (diff) | |
download | ranger-addcfa2823e994fbebf1a8740a9e986cc41fa340.tar.gz |
Comply with pylint's complaint about > 15 local vars
-rw-r--r-- | ranger/ext/img_display.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 048775ef..768cf651 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -219,12 +219,12 @@ class W3MImageDisplayer(ImageDisplayer, FileManagerAware): width = (width * max_height_pixels) // height height = max_height_pixels - posx=int(((start_x - 0.2) * fontw) + self.fm.settings.st_border_offset) - posy=(start_y * fonth) + self.fm.settings.st_border_offset + start_x = int(((start_x - 0.2) * fontw) + self.fm.settings.st_border_offset) + start_y = (start_y * fonth) + self.fm.settings.st_border_offset return "0;1;{x};{y};{w};{h};;;;;{filename}\n4;\n3;\n".format( - x=posx, - y=posy, + x=start_x, + y=start_y, # y = (start_y + 1) * fonth, # (for tmux top status bar) w=width, h=height, |