Skip to content

Commit

Permalink
style: general formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sijis committed Oct 26, 2024
1 parent 046e54b commit 769019d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion errbot/backend_plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class PluginNotFoundException(Exception):


def enumerate_backend_plugins(
all_plugins_paths: List[Union[str, Path]]
all_plugins_paths: List[Union[str, Path]],
) -> Iterator[PluginInfo]:
plugin_places = [Path(root) for root in all_plugins_paths]
for path in plugin_places:
Expand Down
10 changes: 5 additions & 5 deletions errbot/backends/irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
bg_default=NSC("\x03,"),
fx_reset=NSC("\x03"),
fx_bold=NSC("\x02"),
fx_italic=NSC("\x1D"),
fx_underline=NSC("\x1F"),
fx_not_italic=NSC("\x0F"),
fx_not_underline=NSC("\x0F"),
fx_normal=NSC("\x0F"),
fx_italic=NSC("\x1d"),
fx_underline=NSC("\x1f"),
fx_not_italic=NSC("\x0f"),
fx_not_underline=NSC("\x0f"),
fx_normal=NSC("\x0f"),
fixed_width="",
end_fixed_width="",
inline_code="",
Expand Down
8 changes: 2 additions & 6 deletions errbot/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,8 @@ def __init__(self, bot_config):
log.debug(
"created a thread pool of size %d.", bot_config.BOT_ASYNC_POOLSIZE
)
self.commands = (
{}
) # the dynamically populated list of commands available on the bot
self.re_commands = (
{}
) # the dynamically populated list of regex-based commands available on the bot
self.commands = {} # the dynamically populated list of commands available on the bot
self.re_commands = {} # the dynamically populated list of regex-based commands available on the bot
self.command_filters = [] # the dynamically populated list of filters
self.MSG_UNKNOWN_COMMAND = (
'Unknown command: "%(command)s". '
Expand Down
2 changes: 1 addition & 1 deletion errbot/plugin_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Logic related to plugin loading and lifecycle """
"""Logic related to plugin loading and lifecycle"""

import logging
import os
Expand Down
2 changes: 1 addition & 1 deletion errbot/rendering/xhtmlim.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _replace_charref(s):
if num in _invalid_charrefs:
return _invalid_charrefs[num]
if 0xD800 <= num <= 0xDFFF or num > 0x10FFFF:
return "\uFFFD"
return "\ufffd"
if num in _invalid_codepoints:
return ""
return chr(num)
Expand Down

0 comments on commit 769019d

Please sign in to comment.