diff options
author | hut <hut@hut.pm> | 2017-12-20 01:33:23 +0100 |
---|---|---|
committer | hut <hut@hut.pm> | 2017-12-20 01:33:23 +0100 |
commit | 64f2d2c8538a430d284c9f486d785c108e328a8b (patch) | |
tree | d11dcfa6e489784e11502cdc6532f746620913e5 | |
parent | 46498f035252211d2e90066d25faba03e81c5463 (diff) | |
download | ranger-64f2d2c8538a430d284c9f486d785c108e328a8b.tar.gz |
fix drasill's commit so it passes CI
-rw-r--r-- | ranger/ext/img_display.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index abcdd7b1..5c1ba3d1 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -315,6 +315,7 @@ class ITerm2ImageDisplayer(ImageDisplayer, FileManagerAware): file_handle.close() return width, height + class TerminologyImageDisplayer(ImageDisplayer, FileManagerAware): """Implementation of ImageDisplayer using terminology image display support (https://github.com/billiob/terminology). @@ -343,7 +344,7 @@ class TerminologyImageDisplayer(ImageDisplayer, FileManagerAware): self.close_protocol)) # Write Replacement commands ('#') - for x in range(0, height): + for _ in range(0, height): sys.stdout.write("%s}ib%s%s%s}ie%s" % ( self.display_protocol, self.close_protocol, @@ -358,8 +359,9 @@ class TerminologyImageDisplayer(ImageDisplayer, FileManagerAware): sys.stdout.flush() - def _move_to(self, x, y): - # curses.move(y, x) + @staticmethod + def _move_to(x, y): + # curses.move(y, x) tparm = curses.tparm(curses.tigetstr("cup"), y, x) if sys.version_info[0] < 3: sys.stdout.write(tparm) |