git.fiddlerwoaroof.com
Browse code

fixed indentation issues

fiddlerwoaroof authored on 03/03/2012 23:28:05
Showing 1 changed files
... ...
@@ -66,10 +66,10 @@ except:
66 66
             <cleanup>
67 67
 
68 68
     """
69
-    @functools.wraps(func)
70
-    def helper(*args, **kwds):
71
-        return CallableGeneratorContextManager(func(*args, **kwds))
72
-    return helper
69
+		@functools.wraps(func)
70
+		def helper(*args, **kwds):
71
+			return CallableGeneratorContextManager(func(*args, **kwds))
72
+		return helper
73 73
 
74 74
 
75 75
 class RegisteredObj(object):
... ...
@@ -166,9 +166,9 @@ if __name__ == '__main__':
166 166
 
167 167
 	import random
168 168
 	def shuffled(lis):
169
-		lis = lis[:]
170
-		random.shuffle(lis)
171
-		return iter(lis)
169
+	lis = lis[:]
170
+	random.shuffle(lis)
171
+	return iter(lis)
172 172
 
173 173
 
174 174
 	for obj_name in shuffled(['first_obj', 'second_obj', 'third_obj']):