Skip to content

Commit 5453735

Browse files
AWSWCommunityAWSWCommunity
authored andcommitted
Use better naming conventions in loader
1 parent c3edd62 commit 5453735

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modloader/modclass.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ def mod_complete(self):
2727
"""Executes when all mods are loaded"""
2828
pass
2929

30-
def loadable_mod(clazz):
30+
def loadable_mod(modclass):
3131
"""Annotation to add a Mod subclass to the mod list
3232
3333
Args:
34-
clazz (Mod): The Mod class
34+
modclass (Mod): The Mod class
3535
3636
Raises:
3737
Exception: If the given class is not a subclass of Mod
3838
"""
39-
if not issubclass(clazz, Mod):
39+
if not issubclass(modclass, Mod):
4040
raise Exception("Class must be a subclass of Mod")
4141

42-
mod = clazz() # Create a new instance of the class
42+
mod = modclass() # Create a new instance of the class
4343
mod_name, _, _ = mod.mod_info() # Get just the mod name
4444
mod.mod_load() # Load the mod
4545
modinfo.add_mod(mod_name, mod)

0 commit comments

Comments
 (0)