diff options
Diffstat (limited to 'ranger/gui')
-rw-r--r-- | ranger/gui/ansi.py | 2 | ||||
-rw-r--r-- | ranger/gui/bar.py | 2 | ||||
-rw-r--r-- | ranger/gui/color.py | 2 | ||||
-rw-r--r-- | ranger/gui/colorscheme.py | 2 | ||||
-rw-r--r-- | ranger/gui/context.py | 3 | ||||
-rw-r--r-- | ranger/gui/curses_shortcuts.py | 2 | ||||
-rw-r--r-- | ranger/gui/displayable.py | 2 | ||||
-rw-r--r-- | ranger/gui/mouse_event.py | 2 | ||||
-rw-r--r-- | ranger/gui/ui.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/__init__.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/browsercolumn.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/console.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/pager.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/statusbar.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/taskview.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/titlebar.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/view_base.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/view_miller.py | 2 | ||||
-rw-r--r-- | ranger/gui/widgets/view_multipane.py | 2 |
19 files changed, 39 insertions, 0 deletions
diff --git a/ranger/gui/ansi.py b/ranger/gui/ansi.py index 184c04fb..4d6cbeb5 100644 --- a/ranger/gui/ansi.py +++ b/ranger/gui/ansi.py @@ -4,6 +4,8 @@ """A library to help to convert ANSI codes to curses instructions.""" +from __future__ import (absolute_import, print_function) + import re from ranger.gui import color diff --git a/ranger/gui/bar.py b/ranger/gui/bar.py index 91fdff24..c1fd6ff9 100644 --- a/ranger/gui/bar.py +++ b/ranger/gui/bar.py @@ -1,6 +1,8 @@ # This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. +from __future__ import (absolute_import, print_function) + import sys from ranger.ext.widestring import WideString, utf_char_width diff --git a/ranger/gui/color.py b/ranger/gui/color.py index 786299a3..cc2e9a52 100644 --- a/ranger/gui/color.py +++ b/ranger/gui/color.py @@ -13,6 +13,8 @@ attr ^= reverse bool(attr & reverse) # => False """ +from __future__ import (absolute_import, print_function) + import curses DEFAULT_FOREGROUND = curses.COLOR_WHITE diff --git a/ranger/gui/colorscheme.py b/ranger/gui/colorscheme.py index 363d4da3..e5909a09 100644 --- a/ranger/gui/colorscheme.py +++ b/ranger/gui/colorscheme.py @@ -24,6 +24,8 @@ Define which colorscheme in your settings (e.g. ~/.config/ranger/rc.conf): set colorscheme yourschemename """ +from __future__ import (absolute_import, print_function) + import os.path from curses import color_pair diff --git a/ranger/gui/context.py b/ranger/gui/context.py index be118655..dd1320f5 100644 --- a/ranger/gui/context.py +++ b/ranger/gui/context.py @@ -1,6 +1,9 @@ # This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. +from __future__ import (absolute_import, print_function) + + CONTEXT_KEYS = ['reset', 'error', 'badinfo', 'in_browser', 'in_statusbar', 'in_titlebar', 'in_console', 'in_pager', 'in_taskview', diff --git a/ranger/gui/curses_shortcuts.py b/ranger/gui/curses_shortcuts.py index 3213d097..398a9711 100644 --- a/ranger/gui/curses_shortcuts.py +++ b/ranger/gui/curses_shortcuts.py @@ -1,6 +1,8 @@ # This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. +from __future__ import (absolute_import, print_function) + import sys import curses import _curses diff --git a/ranger/gui/displayable.py b/ranger/gui/displayable.py index 1eef8f41..99d119aa 100644 --- a/ranger/gui/displayable.py +++ b/ranger/gui/displayable.py @@ -1,6 +1,8 @@ # This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. +from __future__ import (absolute_import, print_function) + from ranger.core.shared import FileManagerAware from ranger.gui.curses_shortcuts import CursesShortcuts diff --git a/ranger/gui/mouse_event.py b/ranger/gui/mouse_event.py index be25463e..b479e383 100644 --- a/ranger/gui/mouse_event.py +++ b/ranger/gui/mouse_event.py @@ -1,6 +1,8 @@ # This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. +from __future__ import (absolute_import, print_function) + import curses diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py index 90dee4c9..bc3f024d 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -1,6 +1,8 @@ # This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. +from __future__ import (absolute_import, print_function) + import os import sys import threading diff --git a/ranger/gui/widgets/__init__.py b/ranger/gui/widgets/__init__.py index ae515ae1..3dde76a6 100644 --- a/ranger/gui/widgets/__init__.py +++ b/ranger/gui/widgets/__init__.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from __future__ import (absolute_import, print_function) + from ranger.gui.displayable import Displayable diff --git a/ranger/gui/widgets/browsercolumn.py b/ranger/gui/widgets/browsercolumn.py index fa6c89fe..ae59273b 100644 --- a/ranger/gui/widgets/browsercolumn.py +++ b/ranger/gui/widgets/browsercolumn.py @@ -3,6 +3,8 @@ """The BrowserColumn widget displays the contents of a directory or file.""" +from __future__ import (absolute_import, print_function) + import stat from time import time from os.path import splitext diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index 19090620..7558183a 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -3,6 +3,8 @@ """The Console widget implements a vim-like console""" +from __future__ import (absolute_import, print_function) + import curses import re from collections import deque diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py index fabf6113..e214b587 100644 --- a/ranger/gui/widgets/pager.py +++ b/ranger/gui/widgets/pager.py @@ -3,6 +3,8 @@ """The pager displays text and allows you to scroll inside it.""" +from __future__ import (absolute_import, print_function) + from ranger.gui import ansi from ranger.ext.direction import Direction from ranger.ext.img_display import ImgDisplayUnsupportedException diff --git a/ranger/gui/widgets/statusbar.py b/ranger/gui/widgets/statusbar.py index ead79e5d..632a1759 100644 --- a/ranger/gui/widgets/statusbar.py +++ b/ranger/gui/widgets/statusbar.py @@ -8,6 +8,8 @@ print for the current file. The right side shows directory information such as the space used by all the files in this directory. """ +from __future__ import (absolute_import, print_function) + import os from os import getuid, readlink from pwd import getpwuid diff --git a/ranger/gui/widgets/taskview.py b/ranger/gui/widgets/taskview.py index 803b4ae4..2e913f95 100644 --- a/ranger/gui/widgets/taskview.py +++ b/ranger/gui/widgets/taskview.py @@ -3,6 +3,8 @@ """The TaskView allows you to modify what the loader is doing.""" +from __future__ import (absolute_import, print_function) + from ranger.ext.accumulator import Accumulator from . import Widget diff --git a/ranger/gui/widgets/titlebar.py b/ranger/gui/widgets/titlebar.py index 3f96e094..a9f2caaf 100644 --- a/ranger/gui/widgets/titlebar.py +++ b/ranger/gui/widgets/titlebar.py @@ -6,6 +6,8 @@ It displays the current path among other things. """ +from __future__ import (absolute_import, print_function) + from os.path import basename from ranger.gui.bar import Bar diff --git a/ranger/gui/widgets/view_base.py b/ranger/gui/widgets/view_base.py index d6652ef5..3ec01c72 100644 --- a/ranger/gui/widgets/view_base.py +++ b/ranger/gui/widgets/view_base.py @@ -3,6 +3,8 @@ """The base GUI element for views on the directory""" +from __future__ import (absolute_import, print_function) + import curses from ranger.ext.keybinding_parser import key_to_string from . import Widget diff --git a/ranger/gui/widgets/view_miller.py b/ranger/gui/widgets/view_miller.py index 1496e18c..aaaba3d4 100644 --- a/ranger/gui/widgets/view_miller.py +++ b/ranger/gui/widgets/view_miller.py @@ -3,6 +3,8 @@ """ViewMiller arranges the view in miller columns""" +from __future__ import (absolute_import, print_function) + import curses import _curses from ranger.container import settings diff --git a/ranger/gui/widgets/view_multipane.py b/ranger/gui/widgets/view_multipane.py index f99b133c..ac2d5fac 100644 --- a/ranger/gui/widgets/view_multipane.py +++ b/ranger/gui/widgets/view_multipane.py @@ -1,6 +1,8 @@ # This file is part of ranger, the console file manager. # License: GNU GPL version 3, see the file "AUTHORS" for details. +from __future__ import (absolute_import, print_function) + from ranger.gui.widgets.view_base import ViewBase from ranger.gui.widgets.browsercolumn import BrowserColumn |