Skip to content

Commit 769019d

Browse files
committed
style: general formatting
1 parent 046e54b commit 769019d

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

errbot/backend_plugin_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class PluginNotFoundException(Exception):
1515

1616

1717
def enumerate_backend_plugins(
18-
all_plugins_paths: List[Union[str, Path]]
18+
all_plugins_paths: List[Union[str, Path]],
1919
) -> Iterator[PluginInfo]:
2020
plugin_places = [Path(root) for root in all_plugins_paths]
2121
for path in plugin_places:

errbot/backends/irc.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
bg_default=NSC("\x03,"),
5050
fx_reset=NSC("\x03"),
5151
fx_bold=NSC("\x02"),
52-
fx_italic=NSC("\x1D"),
53-
fx_underline=NSC("\x1F"),
54-
fx_not_italic=NSC("\x0F"),
55-
fx_not_underline=NSC("\x0F"),
56-
fx_normal=NSC("\x0F"),
52+
fx_italic=NSC("\x1d"),
53+
fx_underline=NSC("\x1f"),
54+
fx_not_italic=NSC("\x0f"),
55+
fx_not_underline=NSC("\x0f"),
56+
fx_normal=NSC("\x0f"),
5757
fixed_width="",
5858
end_fixed_width="",
5959
inline_code="",

errbot/core.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,8 @@ def __init__(self, bot_config):
5555
log.debug(
5656
"created a thread pool of size %d.", bot_config.BOT_ASYNC_POOLSIZE
5757
)
58-
self.commands = (
59-
{}
60-
) # the dynamically populated list of commands available on the bot
61-
self.re_commands = (
62-
{}
63-
) # the dynamically populated list of regex-based commands available on the bot
58+
self.commands = {} # the dynamically populated list of commands available on the bot
59+
self.re_commands = {} # the dynamically populated list of regex-based commands available on the bot
6460
self.command_filters = [] # the dynamically populated list of filters
6561
self.MSG_UNKNOWN_COMMAND = (
6662
'Unknown command: "%(command)s". '

errbot/plugin_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Logic related to plugin loading and lifecycle """
1+
"""Logic related to plugin loading and lifecycle"""
22

33
import logging
44
import os

errbot/rendering/xhtmlim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def _replace_charref(s):
190190
if num in _invalid_charrefs:
191191
return _invalid_charrefs[num]
192192
if 0xD800 <= num <= 0xDFFF or num > 0x10FFFF:
193-
return "\uFFFD"
193+
return "\ufffd"
194194
if num in _invalid_codepoints:
195195
return ""
196196
return chr(num)

0 commit comments

Comments
 (0)