Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Fix typos #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ package, to build C modules, and the slixmpp python library.
You also need aiodns if you want SRV record support.

The easiest way to have up-to-date dependencies and to be able to test
this developement version is to use the ``update.sh`` script that downloads
this development version is to use the ``update.sh`` script that downloads
them, places them in the right directory, and builds the C module.

You can then launch poezio with
Expand Down
4 changes: 2 additions & 2 deletions data/default_config.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ use_bookmarks_method =
#words =

# XHTML-IM is an XMPP extension letting users send messages
# containing XHTML and CSS formating. We can use this to make
# containing XHTML and CSS formatting. We can use this to make
# colored text for example.
#enable_xhtml_im = true

Expand Down Expand Up @@ -199,7 +199,7 @@ use_bookmarks_method =

# Some informational messages (error, a contact getting connected, etc)
# are sometimes added to the information buffer. These settings can make
# it grow temporarly so you can read these information when they appear.
# it grow temporarily so you can read these information when they appear.

# A list of message types that should make the information buffer grow
# Possible values; error, roster, warning, info, help
Expand Down
4 changes: 2 additions & 2 deletions doc/source/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ and certificate validation.
Path to the certificate of the Certification Authority.
As some services may keep different certificates, it is an alternative to
the Trust On First Use model provided by the :term:`certificate` option.
This option is not affected by :term:`ignore_certificate` and boths checks
This option is not affected by :term:`ignore_certificate` and both checks
may be active at the same time.

certificate
Expand Down Expand Up @@ -631,7 +631,7 @@ or the way messages are displayed.

The maximum length of the nickname that will be displayed in the
conversation window. Nicks that are too long will be truncated and have
a ``…`` appened to them.
a ``…`` appended to them.

roster_group_sort

Expand Down
2 changes: 1 addition & 1 deletion doc/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ using one of these.
- **CentOS**: Poezio is available in EPEL repositories since CentOS 8.
- **Flatpak**: A stable package is provided on flathub_.
- **Debian**: A stable package is provided since buster_ thanks to debacle.
- **Nix** (and **NixOS**): The last stable version of poezio is availalble in
- **Nix** (and **NixOS**): The last stable version of poezio is available in
the unstable branch of `nixpkgs`. Use ``nix-env -f "<nixpkgs>" -iA poezio``
to install poezio for the current user.
- **OpenBSD**: a poezio port_ is available
Expand Down
4 changes: 2 additions & 2 deletions poezio/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ def _datetime_tuple(timestamp: str) -> datetime:
Because various datetime formats are used, the following exceptions
are handled:

* Optional milliseconds appened to the string are removed
* Optional Z (that means UTC) appened to the string are removed
* Optional milliseconds appended to the string are removed
* Optional Z (that means UTC) appended to the string are removed
* XEP-082 datetime strings have all '-' chars removed to meet the above format.

:param str timestamp: The string containing the formatted date.
Expand Down
4 changes: 2 additions & 2 deletions poezio/core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Module defining the Core class, which is the central orchestrator
of poezio and contains the main loop, the list of tabs, sets the state
of everything; it also contains global commands, completions and event
handlers but those are defined in submodules in order to avoir cluttering
handlers but those are defined in submodules in order to avoid cluttering
this file.
"""
from __future__ import annotations
Expand Down Expand Up @@ -92,7 +92,7 @@

class Core:
"""
“Main” class of poezion
“Main” class of poezio
"""

custom_version: str
Expand Down
4 changes: 2 additions & 2 deletions poezio/log_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ async def mam_scroll_requested(self, nb: int) -> List[BaseMessage]:
return []
except (MAMQueryException, DiscoInfoException):
tab.core.information(
f'An error occured when fetching MAM for {tab.jid}',
f'An error occurred when fetching MAM for {tab.jid}',
'Error'
)
return []
Expand Down Expand Up @@ -375,7 +375,7 @@ def build_message(msg) -> str:
self.end()

def end(self) -> None:
"""End a MAM fill (error or sucess). Remove references and signal on
"""End a MAM fill (error or success). Remove references and signal on
the Event().
"""
try:
Expand Down
2 changes: 1 addition & 1 deletion poezio/poopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def xwcwidth(c: str) -> int:
# cut_text: takes a string and returns a tuple of int.
#
# Each two int tuple is a line, represented by the ending position it
# (where it should be cut). Not that this position is calculed using the
# (where it should be cut). Not that this position is calculated using the
# position of the python string characters, not just the individual bytes.
#
# For example,
Expand Down
2 changes: 1 addition & 1 deletion poezio/pooptmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static int xwcwidth(wchar_t c)
cut_text: takes a string and returns a tuple of int.

Each two int tuple is a line, represented by the ending position it
(where it should be cut). Not that this position is calculed using the
(where it should be cut). Not that this position is calculated using the
position of the python string characters, not just the individual bytes.

For example,
Expand Down
2 changes: 1 addition & 1 deletion poezio/windows/bookmark_forms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Windows used inthe bookmarkstab
Windows used in the bookmarkstab
"""
import curses
from typing import List, Tuple, Optional
Expand Down
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
# Use this script to download or update all dependencies to their last
# developpement version.
# development version.
# The dependencies will be located in a virtualenv, so you do not
# need to install them on your system at all.

Expand Down