Skip to content

Commit

Permalink
Format with black
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberrumor committed Nov 3, 2023
1 parent 2c1bc3c commit a13fd86
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions ammo/fomod_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def _post_exec(self) -> bool:
self._populate_index_commands()
return False


def _populate_index_commands(self):
"""
Hack to get dynamically allocated methods which are
Expand All @@ -88,14 +87,9 @@ def _populate_index_commands(self):
except ValueError:
pass
for i in range(len(self.page["plugins"])):
setattr(
self,
str(i),
lambda self, i=i: self._select(i)
)
setattr(self, str(i), lambda self, i=i: self._select(i))
self.__dict__[str(i)].__doc__ = f"Toggle {self.page['plugins'][i]['name']}"


def _normalize(self, destination: Path, dest_prefix: Path) -> Path:
"""
Prevent folders with the same name but different case
Expand Down

0 comments on commit a13fd86

Please sign in to comment.