summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-22 03:27:58 +0100
committerhut <hut@lavabit.com>2013-02-22 03:27:58 +0100
commitd894fd02f52c569cfcf73917a006d68513af56ff (patch)
treed89c361a0f08aa343c4fae40ad75dbbf8624ffa2 /ranger
parent58247b857f861c057158ec3ecab89f3dffcfe290 (diff)
downloadranger-d894fd02f52c569cfcf73917a006d68513af56ff.tar.gz
use 4-space-indents in files that had 2-space-indents
Diffstat (limited to 'ranger')
-rw-r--r--ranger/ext/cached_function.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/ranger/ext/cached_function.py b/ranger/ext/cached_function.py
index bbd6d2d4..daee6397 100644
--- a/ranger/ext/cached_function.py
+++ b/ranger/ext/cached_function.py
@@ -2,14 +2,14 @@
 # This software is distributed under the terms of the GNU GPL version 3.
 
 def cached_function(fnc):
-  cache = {}
-  def inner_cached_function(*args):
-    try:
-      return cache[args]
-    except:
-      value = fnc(*args)
-      cache[args] = value
-      return value
-  inner_cached_function._cache = cache
-  return inner_cached_function
+    cache = {}
+    def inner_cached_function(*args):
+        try:
+            return cache[args]
+        except:
+            value = fnc(*args)
+            cache[args] = value
+            return value
+    inner_cached_function._cache = cache
+    return inner_cached_function