Formatting
This commit is contained in:
parent
8cf9154218
commit
6626781dff
2 changed files with 17 additions and 11 deletions
|
@ -113,7 +113,13 @@ def eball(bot, chan: str, name: str, message: str) -> None:
|
||||||
|
|
||||||
|
|
||||||
def debug(bot, chan: str, name: str, message: str) -> None:
|
def debug(bot, chan: str, name: str, message: str) -> None:
|
||||||
dbg_out = {"VERSION": bot.__version__, "NICKLEN": bot.nicklen, "NICK": bot.nick, "ADMINS": bot.adminnames, "CHANNELS": bot.channels}
|
dbg_out = {
|
||||||
|
"VERSION": bot.__version__,
|
||||||
|
"NICKLEN": bot.nicklen,
|
||||||
|
"NICK": bot.nick,
|
||||||
|
"ADMINS": bot.adminnames,
|
||||||
|
"CHANNELS": bot.channels,
|
||||||
|
}
|
||||||
bot.msg(f"[DEBUG] {dbg_out}", chan)
|
bot.msg(f"[DEBUG] {dbg_out}", chan)
|
||||||
|
|
||||||
|
|
||||||
|
|
20
overrides.py
20
overrides.py
|
@ -8,17 +8,17 @@ _T = TypeVar("_T")
|
||||||
class bytes(bbytes):
|
class bytes(bbytes):
|
||||||
"""Local override of builtin bytes class to add "lazy_decode"
|
"""Local override of builtin bytes class to add "lazy_decode"
|
||||||
|
|
||||||
bytes(iterable_of_ints) -> bytes
|
bytes(iterable_of_ints) -> bytes
|
||||||
bytes(string, encoding[, errors]) -> bytes
|
bytes(string, encoding[, errors]) -> bytes
|
||||||
bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer
|
bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer
|
||||||
bytes(int) -> bytes object of size given by the parameter initialized with null bytes
|
bytes(int) -> bytes object of size given by the parameter initialized with null bytes
|
||||||
bytes() -> empty bytes object
|
bytes() -> empty bytes object
|
||||||
|
|
||||||
Construct an immutable array of bytes from:
|
Construct an immutable array of bytes from:
|
||||||
- an iterable yielding integers in range(256)
|
- an iterable yielding integers in range(256)
|
||||||
- a text string encoded using the specified encoding
|
- a text string encoded using the specified encoding
|
||||||
- any object implementing the buffer API.
|
- any object implementing the buffer API.
|
||||||
- an integer
|
- an integer
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __new__(
|
def __new__(
|
||||||
|
|
Loading…
Reference in a new issue