- Gave the package a descriptive name.
- Passed over with black once more.
- Created setup.py to install dependencies.
- Updated author to reflect repo ownership to Dusty.
- Changed `git` command to use the __url__ attribute.
- Changed music to use ogg vorbis instead of mp3, purely for
performance.
- Tried to make sure nothing broke.
- Updated dockerfile. Pretty sure we don't need it though...
25 lines
587 B
Python
25 lines
587 B
Python
#!/usr/bin/env python3.6
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Neko404NotFound 2018, MIT
|
|
|
|
A mixin class that injects a suitably named logger into class scope
|
|
at runtime.
|
|
|
|
Chosen to make this a slotted class, which means (as far as I can remember)
|
|
that it is not suitable to be made into an abc.ABC class. Slots will
|
|
enable derived slotted classes to be a bit more efficient at runtime and
|
|
boast faster lookups.
|
|
"""
|
|
import logging
|
|
|
|
|
|
__all__ = ("Loggable",)
|
|
|
|
|
|
class Loggable:
|
|
__slots__ = ("logger",)
|
|
|
|
def __init_subclass__(cls, **_):
|
|
cls.logger = logging.getLogger(cls.__qualname__)
|