Browse Source

Follow the python convention for class variable naming "cls" not "clazz".

Douglas William Thrift 9 years ago
parent
commit
9e5e9bf5e2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      locationbot.py

+ 2 - 2
locationbot.py

@@ -386,9 +386,9 @@ class Command(object):
 
 def command(admin, state, access, arguments, description):
 	def command(function):
-		clazz = inspect.getouterframes(inspect.currentframe())[1][0].f_locals
+		cls = inspect.getouterframes(inspect.currentframe())[1][0].f_locals
 
-		clazz.setdefault('commands', {})[function.func_name] = Command(admin, state, access, arguments, description, function)
+		cls.setdefault('commands', {})[function.func_name] = Command(admin, state, access, arguments, description, function)
 
 		return function