diff options
author | Joseph Rice <mrwildrice@gmail.com> | 2019-09-11 04:22:55 -0400 |
---|---|---|
committer | Joseph Rice <mrwildrice@gmail.com> | 2019-09-11 04:22:55 -0400 |
commit | b039f06f2fdb49709768225b2032e6a739c7ae51 (patch) | |
tree | 20c9857d5aa1bc171cade42a284aef62a95b8eed /ranger | |
parent | 3b8a32522ebb392a29759ec814947db048592f2e (diff) | |
download | ranger-b039f06f2fdb49709768225b2032e6a739c7ae51.tar.gz |
added extra whitespace to satisfy flake8 rules on build server
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/ext/img_display.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index aa4822ec..abe09327 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -72,12 +72,16 @@ class ImageDisplayError(Exception): class ImgDisplayUnsupportedException(Exception): pass + def fallback_image_displayer(): """Simply makes some noise when chosen. Temporary fallback behavior.""" raise ImgDisplayUnsupportedException + IMAGE_DISPLAYER_REGISTRY = defaultdict(fallback_image_displayer) + + def register_image_displayer(nickname=None): """Register an ImageDisplayer by nickname if available.""" @@ -86,6 +90,7 @@ def register_image_displayer(nickname=None): return cls return decorator + class ImageDisplayer(object): """Image display provider functions for drawing images in the terminal""" |