summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornfnty <git@nfnty.se>2017-01-25 12:34:48 +0100
committernfnty <git@nfnty.se>2017-01-25 12:34:48 +0100
commit7255a023d951c0fa8aa4ee5ed8cbe49852710c97 (patch)
tree5f23b25bff7f90754ff831cdf3bb7ca701a58216
parent00dcb843fb0caa9a01ed445c4f4189da74864f42 (diff)
downloadranger-7255a023d951c0fa8aa4ee5ed8cbe49852710c97.tar.gz
core.loader: `safeDecode()` -> `safe_decode()`
-rw-r--r--ranger/core/loader.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ranger/core/loader.py b/ranger/core/loader.py
index 1033d154..13668a00 100644
--- a/ranger/core/loader.py
+++ b/ranger/core/loader.py
@@ -204,13 +204,13 @@ class CommandLoader(  # pylint: disable=too-many-instance-attributes
                         if robjs == process.stderr:
                             read = robjs.readline()
                             if py3:
-                                read = safeDecode(read)
+                                read = safe_decode(read)
                             if read:
                                 self.fm.notify(read, bad=True)
                         elif robjs == process.stdout:
                             read = robjs.read(512)
                             if py3:
-                                read = safeDecode(read)
+                                read = safe_decode(read)
                             if read:
                                 self.stdout_buffer += read
                 except select.error:
@@ -218,12 +218,12 @@ class CommandLoader(  # pylint: disable=too-many-instance-attributes
             if not self.silent:
                 for line in process.stderr:
                     if py3:
-                        line = safeDecode(line)
+                        line = safe_decode(line)
                     self.fm.notify(line, bad=True)
             if self.read:
                 read = process.stdout.read()
                 if py3:
-                    read = safeDecode(read)
+                    read = safe_decode(read)
                 self.stdout_buffer += read
         self.finished = True
         self.signal_emit('after', process=process, loader=self)
@@ -264,7 +264,7 @@ class CommandLoader(  # pylint: disable=too-many-instance-attributes
                 pass
 
 
-def safeDecode(string):  # pylint: disable=invalid-name
+def safe_decode(string):
     try:
         return string.decode("utf-8")
     except UnicodeDecodeError: