Skip to content

Commit

Permalink
Fix spelling mistakes
Browse files Browse the repository at this point in the history
Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk>
  • Loading branch information
andrewshadura committed Oct 4, 2020
1 parent 2461cf0 commit f236272
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gtimelog.rst
Expand Up @@ -13,7 +13,7 @@ minimal time logging application
:Manual section: 1


SYNOPSYS
SYNOPSIS
========

**gtimelog** [options]
Expand Down
4 changes: 2 additions & 2 deletions src/gtimelog/main.py
Expand Up @@ -238,7 +238,7 @@ def search_callback(source, result):
# if several ones match (e.g. the user tried several different
# usernames). This is good because if the wrong username gets
# picked and is rejected by the server, we'll ask the user
# again and then rememebr the more recently provided answer.
# again and then remember the more recently provided answer.
# This is bad only if multiple sets of credentials are valid
# but cause different data to be returned -- the user will
# be forced to launch Seahorse and remove the saved credentials
Expand Down Expand Up @@ -1678,7 +1678,7 @@ def reposition_cursor(self):
self.get_buffer().place_cursor(where)

def scroll_to_end(self):
# If I do the scrolling immediatelly, it won't scroll to the end, usually.
# If I do the scrolling immediately, it won't scroll to the end, usually.
# If I delay the scrolling, it works every time.
# I only wish I knew how to disable the scroll animation.
GLib.idle_add(self._scroll_to_end)
Expand Down
8 changes: 4 additions & 4 deletions src/gtimelog/tests/test_main.py
Expand Up @@ -22,7 +22,7 @@ def test_prepare_message_ascii(self):
sender='ASCII Name <test@example.com>',
recipient='activity@example.com',
subject='Report for Mr. Plain',
body='These are the activites done by Mr. Plain:\n...\n',
body='These are the activities done by Mr. Plain:\n...\n',
)
self.assertEqual("ASCII Name <test@example.com>", msg["From"])
self.assertEqual("activity@example.com", msg["To"])
Expand All @@ -36,7 +36,7 @@ def test_prepare_message_ascii(self):
Subject: Report for Mr. Plain
User-Agent: gtimelog/0.11.dev0
These are the activites done by Mr. Plain:
These are the activities done by Mr. Plain:
...
''').replace('0.11.dev0', __version__)
self.assertEqual(expected, msg.as_string())
Expand All @@ -47,7 +47,7 @@ def test_prepare_message_unicode(self):
sender='Ünicødę Name <test@example.com>',
recipient='Anöther nąme <activity@example.com>',
subject='Report for Mr. ☃',
body='These are the activites done by Mr. ☃:\n...\n',
body='These are the activities done by Mr. ☃:\n...\n',
)
expected = textwrap.dedent('''\
MIME-Version: 1.0
Expand All @@ -58,7 +58,7 @@ def test_prepare_message_unicode(self):
Subject: =?utf-8?b?UmVwb3J0IGZvciBNci4g4piD?=
User-Agent: gtimelog/0.11.dev0
VGhlc2UgYXJlIHRoZSBhY3Rpdml0ZXMgZG9uZSBieSBNci4g4piDOgouLi4K
VGhlc2UgYXJlIHRoZSBhY3Rpdml0aWVzIGRvbmUgYnkgTXIuIOKYgzoKLi4uCg==
''').replace('0.11.dev0', __version__)
self.assertEqual(expected, msg.as_string())

Expand Down
2 changes: 1 addition & 1 deletion src/gtimelog/timelog.py
Expand Up @@ -441,7 +441,7 @@ def to_csv_daily(self, output, title_row=True):
"slacking (hours)", "work (hours)"])

# sum timedeltas per date
# timelog must be cronological for this to be dependable
# timelog must be chronological for this to be dependable

d0 = datetime.timedelta(0)
days = {} # date -> [time_started, slacking, work]
Expand Down

0 comments on commit f236272

Please sign in to comment.