From a6e66cd50ef64c0f2bf6fe154edcc652a66e9a46 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 9 Mar 2019 15:36:32 +0100 Subject: Fix various spelling mistakes throughout the code --- poezio/common.py | 2 +- poezio/tabs/basetabs.py | 2 +- poezio/tabs/conversationtab.py | 2 +- poezio/tabs/data_forms.py | 2 +- poezio/tabs/listtab.py | 2 +- poezio/tabs/privatetab.py | 2 +- poezio/tabs/rostertab.py | 4 ++-- poezio/windows/data_forms.py | 2 +- poezio/windows/image.py | 2 +- poezio/windows/list.py | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) (limited to 'poezio') diff --git a/poezio/common.py b/poezio/common.py index 3a865054..a39f8145 100644 --- a/poezio/common.py +++ b/poezio/common.py @@ -394,7 +394,7 @@ def parse_secs_to_str(duration=0) -> str: def format_tune_string(infos: Dict[str, str]) -> str: """ - Contruct a string from a dict created from an "User tune" event. + Construct a string from a dict created from an "User tune" event. :param dict infos: Tune information :return: The formatted string diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 330b9913..213f39d7 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -241,7 +241,7 @@ class Tab: ['/%s' % (name) for name in sorted(self.commands)] the_input.new_completion(words, 0) # Do not try to cycle command completion if there was only - # one possibily. The next tab will complete the argument. + # one possibility. The next tab will complete the argument. # Otherwise we would need to add a useless space before being # able to complete the arguments. hit_copy = set(the_input.hit_list) diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index 94f1d719..05ca06c0 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -34,7 +34,7 @@ log = logging.getLogger(__name__) class ConversationTab(OneToOneTab): """ - The tab containg a normal conversation (not from a MUC) + The tab containing a normal conversation (not from a MUC) Must not be instantiated, use Static or Dynamic version only. """ plugin_commands = {} # type: Dict[str, Command] diff --git a/poezio/tabs/data_forms.py b/poezio/tabs/data_forms.py index 496863bc..f4ed63e5 100644 --- a/poezio/tabs/data_forms.py +++ b/poezio/tabs/data_forms.py @@ -14,7 +14,7 @@ log = logging.getLogger(__name__) class DataFormsTab(Tab): """ - A tab contaning various window type, displaying + A tab containing various window type, displaying a form that the user needs to fill. """ plugin_commands = {} # type: Dict[str, Command] diff --git a/poezio/tabs/listtab.py b/poezio/tabs/listtab.py index 07b3fe05..87e7d9f4 100644 --- a/poezio/tabs/listtab.py +++ b/poezio/tabs/listtab.py @@ -1,5 +1,5 @@ """ -A generic tab that displays a serie of items in a scrollable, searchable, +A generic tab that displays a series of items in a scrollable, searchable, sortable list. It should be inherited, to actually provide methods that insert items in the list, and that lets the user interact with them. """ diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py index 35e5feaa..32b39aea 100644 --- a/poezio/tabs/privatetab.py +++ b/poezio/tabs/privatetab.py @@ -33,7 +33,7 @@ log = logging.getLogger(__name__) class PrivateTab(OneToOneTab): """ - The tab containg a private conversation (someone from a MUC) + The tab containing a private conversation (someone from a MUC) """ plugin_commands = {} # type: Dict[str, Command] plugin_keys = {} # type: Dict[str, Callable] diff --git a/poezio/tabs/rostertab.py b/poezio/tabs/rostertab.py index 768963af..86db06a0 100644 --- a/poezio/tabs/rostertab.py +++ b/poezio/tabs/rostertab.py @@ -44,7 +44,7 @@ def deny_anonymous(func: Callable) -> Callable: class RosterInfoTab(Tab): """ - A tab, splitted in two, containing the roster and infos + A tab, split in two, containing the roster and infos """ plugin_commands = {} # type: Dict[str, Command] plugin_keys = {} # type: Dict[str, Callable] @@ -88,7 +88,7 @@ class RosterInfoTab(Tab): usage='[jid]', desc='Deny your presence to the provided JID (or the ' 'selected contact in your roster), who is asking' - 'you to be in his/here roster.', + 'you to be in his/her roster.', shortdesc='Deny a user your presence.', completion=self.completion_deny) self.register_command( diff --git a/poezio/windows/data_forms.py b/poezio/windows/data_forms.py index 3ec44b97..7e746774 100644 --- a/poezio/windows/data_forms.py +++ b/poezio/windows/data_forms.py @@ -272,7 +272,7 @@ class ListMultiWin(FieldInputMixin): self._field.set_answer(values) def get_help_message(self): - return '←, →: Switch between the value. Space: select or unselect a value' + return '←, →: Switch between the value. Space: select or deselect a value' class ListSingleWin(FieldInputMixin): diff --git a/poezio/windows/image.py b/poezio/windows/image.py index 96636ec7..dfd2eae2 100644 --- a/poezio/windows/image.py +++ b/poezio/windows/image.py @@ -52,7 +52,7 @@ def render_svg(svg: bytes) -> Optional[Image.Image]: handle.render_cairo(context) data = surface.get_data() image = Image.frombytes('RGBA', (MAX_SIZE, MAX_SIZE), data.tobytes()) - # This is required because Cairo uses a BGRA (in host endianess) + # This is required because Cairo uses a BGRA (in host endianness) # format, and PIL an ABGR (in byte order) format. Yes, this is # confusing. b, g, r, a = image.split() diff --git a/poezio/windows/list.py b/poezio/windows/list.py index 350255c6..c427a79e 100644 --- a/poezio/windows/list.py +++ b/poezio/windows/list.py @@ -40,7 +40,7 @@ class ListWin(Win): def empty(self) -> None: """ - emtpy the list and reset some important values as well + empty the list and reset some important values as well """ self.lines = [] self._selected_row = 0 -- cgit v1.2.3