summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parente0a28380798568eb73c3c8b18ba947ebfdcac43e (diff)
downloadranger-20ea71805beafe299b707be7a570dfa94117b6cc.tar.gz
config/commands.py: fixed py3-specific encoding bug
Diffstat (limited to 'ranger')
-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)):
>^
069ed1c8 ^
62c6d163 ^
292ccba1 ^

069ed1c8 ^
292ccba1 ^







1f56ac64 ^
0cb988d0 ^
3ecd66fb ^
292ccba1 ^
871ea368 ^

292ccba1 ^





069ed1c8 ^
222c31db ^
292ccba1 ^

069ed1c8 ^
292ccba1 ^




ca00f6b9 ^
39c0d1b1 ^
0cb988d0 ^
3ecd66fb ^
292ccba1 ^
ca00f6b9 ^
39c0d1b1 ^
871ea368 ^
b6fdd2e4 ^
292ccba1 ^





0f851e48 ^

aa2e2155 ^
292ccba1 ^
ca00f6b9 ^
39c0d1b1 ^
0cb988d0 ^
292ccba1 ^
ca00f6b9 ^
39c0d1b1 ^
292ccba1 ^





069ed1c8 ^
292ccba1 ^
069ed1c8 ^
292ccba1 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90