summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-12-14 16:33:41 +0100
committerhut <hut@lepus.uberspace.de>2014-12-14 16:33:56 +0100
commit20ea71805beafe299b707be7a570dfa94117b6cc (patch)
treed377acd2092f8424dedbcea659481a778b45f389
parente0a28380798568eb73c3c8b18ba947ebfdcac43e (diff)
downloadranger-20ea71805beafe299b707be7a570dfa94117b6cc.tar.gz
config/commands.py: fixed py3-specific encoding bug
-rw-r--r--ranger/config/commands.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index b1a1e81d..c496f71e 100644
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -803,10 +803,7 @@ class bulkrename(Command):
         listfile.close()
         self.fm.execute_file([File(listpath)], app='editor')
         listfile = open(listpath, 'r')
-        if py3:
-            new_filenames = listfile.read().decode("utf-8").split("\n")
-        else:
-            new_filenames = listfile.read().split("\n")
+        new_filenames = listfile.read().split("\n")
         listfile.close()
         os.unlink(listpath)
         if all(a == b for a, b in zip(filenames, new_filenames)):
26 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246