Skip to content

Commit

Permalink
treewide: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
torstehu committed Nov 4, 2019
1 parent 514d6b8 commit 5ab4542
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions contrib/githooks/install-hooks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SYMLINKED_FILES=()
symlink_file () {
[ "$(${READLINK_CMD} ${2})" = "${1}" ] \
&& {
echo -e "\033[90mSkipping '\033[33m$(basename ${1})\033[90m'... Alread linked."
echo -e "\033[90mSkipping '\033[33m$(basename ${1})\033[90m'... Already linked."
return 0
} || true

Expand Down Expand Up @@ -75,5 +75,5 @@ for file_to_link in "${TO_LINK[@]}"; do
}
done

echo -e "\033[42mGit hooks installed succesfully.\033[0m"
exit 0
echo -e "\033[42mGit hooks installed successfully.\033[0m"
exit 0
2 changes: 1 addition & 1 deletion sopel/coretasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def track_quit(bot, trigger):
@sopel.module.unblockable
def receive_cap_list(bot, trigger):
cap = trigger.strip('-=~')
# Server is listing capabilites
# Server is listing capabilities
if trigger.args[1] == 'LS':
receive_cap_ls_reply(bot, trigger)
# Server denied CAP REQ
Expand Down
2 changes: 1 addition & 1 deletion sopel/irc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def write(self, args, text=None):
``args`` is an iterable of strings, which are joined by spaces.
``text`` is treated as though it were the final item in ``args``, but
is preceeded by a ``:``. This is a special case which means that
is preceded by a ``:``. This is a special case which means that
``text``, unlike the items in ``args`` may contain spaces (though this
constraint is not checked by ``write``).
Expand Down
2 changes: 1 addition & 1 deletion sopel/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def setup_logging(settings):
'when': 'midnight',
'formatter': 'sopel',
},
# catched error log file
# caught error log file
'errorfile': {
'level': 'ERROR',
'class': 'logging.handlers.TimedRotatingFileHandler',
Expand Down
2 changes: 1 addition & 1 deletion sopel/modules/bugzilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def show_bug(bot, trigger, match=None):

if error:
LOGGER.warning('Bugzilla error: %s' % error)
bot.say('[BUGZILLA] Unable to get infomation for '
bot.say('[BUGZILLA] Unable to get information for '
'linked bug (%s)' % error)
return

Expand Down
2 changes: 1 addition & 1 deletion sopel/modules/meetbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def take_comment(bot, trigger):
See [meetbot module usage]({% link _usage/meetbot-module.md %})
"""
if not trigger.group(4): # <2 arguements were given
if not trigger.group(4): # <2 arguments were given
bot.say(
"Usage: {}comment <#channel> <comment to add>".format(
bot.config.core.help_prefix
Expand Down
6 changes: 3 additions & 3 deletions sopel/tools/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def guarded_mul(left, right):
def pow_complexity(num, exp):
"""Estimate the worst case time pow(num, exp) takes to calculate.
This function is based on experimetal data from the time it takes to
This function is based on experimental data from the time it takes to
calculate "num**exp" on laptop with i7-2670QM processor on a 32 bit
CPython 2.7.6 interpreter on Windows.
Expand All @@ -123,7 +123,7 @@ def pow_complexity(num, exp):
The function number were selected by starting with the theoretical
complexity of exp * log2(num)**2 and fiddling with the exponents
untill it more or less matched with the table.
until it more or less matched with the table.
Because this function is based on a limited set of data it might
not give accurate results outside these boundaries. The results
Expand All @@ -146,7 +146,7 @@ def guarded_pow(left, right):
elif not isinstance(right, numbers.Integral):
pass
elif pow_complexity(left, right) < 0.5:
# Value 0.5 is arbitary and based on a estimated runtime of 0.5s
# Value 0.5 is arbitrary and based on an estimated runtime of 0.5s
# on a fairly decent laptop processor.
pass
else:
Expand Down
4 changes: 2 additions & 2 deletions sopel/tools/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def get_channel_timezone(db, channel):


def get_timezone(db=None, config=None, zone=None, nick=None, channel=None):
"""Find, and return, the approriate timezone
"""Find, and return, the appropriate timezone
Time zone is pulled in the following priority:
Expand All @@ -107,7 +107,7 @@ def get_timezone(db=None, config=None, zone=None, nick=None, channel=None):
If ``db`` is not given, or given but not set up, steps 2 and 3 will be
skipped. If ``config`` is not given, step 4 will be skipped. If no step
yeilds a valid timezone, ``None`` is returned.
yields a valid timezone, ``None`` is returned.
Valid timezones are those present in the IANA Time Zone Database.
Expand Down
2 changes: 1 addition & 1 deletion sopel/trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class Trigger(unicode):
"""The account name of the user sending the message.
This is only available if either the account-tag or the account-notify and
extended-join capabilites are available. If this isn't the case, or the user
extended-join capabilities are available. If this isn't the case, or the user
sending the message isn't logged in, this will be None.
"""

Expand Down
4 changes: 2 additions & 2 deletions test/modules/test_modules_isup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
# with scheme
('http://example.com', 'http://example.com'),
('https://example.com', 'https://example.com'),
# wich scheme and URL path
# with scheme and URL path
('http://example.com/path', 'http://example.com/path'),
('https://example.com/path', 'https://example.com/path'),
# wich scheme, URL path, and query string
# with scheme, URL path, and query string
('http://example.com/path?p=val', 'http://example.com/path?p=val'),
('https://example.com/path?p=val', 'https://example.com/path?p=val'),
# not .com TLD
Expand Down

0 comments on commit 5ab4542

Please sign in to comment.