summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/api/commands.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/api/commands.py b/ranger/api/commands.py
index db6c1a3c..fcbc5113 100644
--- a/ranger/api/commands.py
+++ b/ranger/api/commands.py
@@ -106,11 +106,11 @@ class Command(FileManagerAware):
 		try:
 			# are we at the end of a directory?
 			if rel_dest.endswith('/') or rel_dest == '':
-				_, dirnames, _ = os.walk(abs_dest).next()
+				_, dirnames, _ = next(os.walk(abs_dest))
 
 			# are we in the middle of the filename?
 			else:
-				_, dirnames, _ = os.walk(abs_dirname).next()
+				_, dirnames, _ = next(os.walk(abs_dirname))
 				dirnames = [dn for dn in dirnames \
 						if dn.startswith(rel_basename)]
 		except (OSError, StopIteration):
@@ -155,12 +155,12 @@ class Command(FileManagerAware):
 		try:
 			# are we at the end of a directory?
 			if rel_dest.endswith('/') or rel_dest == '':
-				_, dirnames, filenames = os.walk(abs_dest).next()
+				_, dirnames, filenames = next(os.walk(abs_dest))
 				names = dirnames + filenames
 
 			# are we in the middle of the filename?
 			else:
-				_, dirnames, filenames = os.walk(abs_dirname).next()
+				_, dirnames, filenames = next(os.walk(abs_dirname))
 				names = [name for name in (dirnames + filenames) \
 						if name.startswith(rel_basename)]
 		except (OSError, StopIteration):
ik.com> 2018-11-30 10:54:42 -0800 4801' href='/akkartik/mu/commit/subx/051test.subx?h=main&id=6030d7e2e56d445ca67c6a0e8c9cf33e46bc673c'>6030d7e2 ^
9d27e966 ^
6030d7e2 ^
9d27e966 ^
6030d7e2 ^


9d27e966 ^
6030d7e2 ^
80b6f47e ^
57628c0e ^
33e7c3a7 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
33e7c3a7 ^
6030d7e2 ^


dd9ba09a ^

1639687b ^
6030d7e2 ^

9d27e966 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
6030d7e2 ^
9d27e966 ^
03d50cc8 ^
9d27e966 ^
ee9a9237 ^
dd9ba09a ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^
03d50cc8 ^
6030d7e2 ^
03d50cc8 ^
ee9a9237 ^
6030d7e2 ^

33e7c3a7 ^
ee9a9237 ^
6030d7e2 ^


57628c0e ^


e0ffdcd1 ^

57628c0e ^
6030d7e2 ^



4224ec81 ^
e0ffdcd1 ^
03d50cc8 ^
6030d7e2 ^
15ae0717 ^
ee9a9237 ^
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
91
92
93