From d75add614bfee6ccb9abb6df39c67326d112d0fa Mon Sep 17 00:00:00 2001 From: Slava Date: Thu, 12 Jan 2023 23:54:24 +0300 Subject: [PATCH] Some visual changes --- cogs/info.py | 4 ++-- lib/ListGenerator.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cogs/info.py b/cogs/info.py index 532e72d..88b86e9 100644 --- a/cogs/info.py +++ b/cogs/info.py @@ -9,7 +9,7 @@ from lib import determine_prefix, determine_time from lib import logger -class Bot_info(commands.Cog, name='Bot Info'): +class BotInfo(commands.Cog, name='Bot Info'): def __init__(self, bot): self.bot = bot # defining bot as global var in class @@ -41,4 +41,4 @@ class Bot_info(commands.Cog, name='Bot Info'): def setup(bot): # an extension must have a setup function - bot.add_cog(Bot_info(bot)) # adding a cog + bot.add_cog(BotInfo(bot)) # adding a cog diff --git a/lib/ListGenerator.py b/lib/ListGenerator.py index a0892e9..a91123f 100644 --- a/lib/ListGenerator.py +++ b/lib/ListGenerator.py @@ -79,7 +79,7 @@ class _ListGenerationIter: if self._current_index < self._size: _name = self._list[self._current_index] _path = self._path - _type = self._type + _type = self.type _exc = self._exc self._current_index += 1 memb = _FileAttrs(_name, _path, _type, _exc)