about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorsquigz <squigglezworth@gmail.com>2018-01-04 20:18:49 -0500
committersquigz <squigglezworth@gmail.com>2018-01-04 20:18:49 -0500
commit50410a43f7f8d076bc6963dce0b21f8ce72955e0 (patch)
tree7e4abae17e55b9f9e99ef39f708d058afe984133
parentde45af6210e55e053504d734e058b9360e74762b (diff)
downloadranger-50410a43f7f8d076bc6963dce0b21f8ce72955e0.tar.gz
Reduce calls to string.lower()
-rw-r--r--ranger/gui/widgets/view_miller.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/ranger/gui/widgets/view_miller.py b/ranger/gui/widgets/view_miller.py
index 7cec3c21..795988cb 100644
--- a/ranger/gui/widgets/view_miller.py
+++ b/ranger/gui/widgets/view_miller.py
@@ -99,7 +99,7 @@ class ViewMiller(ViewBase):  # pylint: disable=too-many-ancestors,too-many-insta
                 directory.use()
         DisplayableContainer.draw(self)
         if self.settings.draw_borders:
-            self._draw_borders(self.settings.draw_borders)
+            self._draw_borders(self.settings.draw_borders.lower())
         if self.draw_bookmarks:
             self._draw_bookmarks()
         elif self.draw_hints:
@@ -110,9 +110,9 @@ class ViewMiller(ViewBase):  # pylint: disable=too-many-ancestors,too-many-insta
     def _draw_borders(self, string):
         win = self.win
 
-        separators = True if string.lower() == "separators" else False
-        borders = True if string.lower() == "outline" else False
-        both = True if string.lower() == "both" else False
+        separators = True if string == "separators" else False
+        borders = True if string == "outline" else False
+        both = True if string == "both" else False
         self.color('in_browser', 'border')
 
         left_start = 0
@@ -158,7 +158,6 @@ class ViewMiller(ViewBase):  # pylint: disable=too-many-ancestors,too-many-insta
                     # pylint: disable=no-member
                     win.vline(1, x, curses.ACS_VLINE, y - 1)
                     char = curses.ACS_TTEE if both or borders else curses.ACS_VLINE
-                    char = curses.ACS_TTEE if both or borders else curses.ACS_VLINE
                     self.addch(0, x, char, 0)
                     char = curses.ACS_BTEE if both or borders else curses.ACS_VLINE
                     self.addch(y, x, char, 0)