summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-01-20 20:46:10 +0100
committerhut <hut@lavabit.com>2012-01-20 20:46:10 +0100
commit5db94646ffdd492103a40a2e33758b1827032661 (patch)
tree0bb229c6c158ef1f27fb780ae93a2e4c0d4dcaaa
parentc2b71f721ba4fec22e6b8135508e07cb56df3320 (diff)
downloadranger-5db94646ffdd492103a40a2e33758b1827032661.tar.gz
ext.cached_function: Fixed
-rw-r--r--ranger/ext/cached_function.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/cached_function.py b/ranger/ext/cached_function.py
index 00068583..4d9ded18 100644
--- a/ranger/ext/cached_function.py
+++ b/ranger/ext/cached_function.py
@@ -15,11 +15,11 @@
 
 def cached_function(fnc):
   cache = {}
-  def inner_cached_function(self, *args):
+  def inner_cached_function(*args):
     try:
       return cache[args]
     except:
-      value = fnc(self, *args)
+      value = fnc(*args)
       cache[args] = value
       return value
   inner_cached_function._cache = cache
lt;vc@akkartik.com> 2018-08-04 17:00:27 -0700 committer Kartik Agaram <vc@akkartik.com> 2018-08-04 17:00:27 -0700 4478' href='/akkartik/mu/commit/html/subx/ex2.subx.html?h=main&id=bb2b6ba7fd72bbebc3a4490d090f080e7b8628cc'>bb2b6ba7 ^
608a7fa8 ^
bb2b6ba7 ^



































5a2cb154 ^


bb2b6ba7 ^



c762564b ^
104e521c ^






bb2b6ba7 ^



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