From ae9e862f19e84571004423ab47d3472fe188b242 Mon Sep 17 00:00:00 2001 From: Tom Swartz Date: Wed, 9 Oct 2019 10:53:37 -0400 Subject: [PATCH] Fix typos in comments --- lib/hidapi/hidconsole.py | 2 +- lib/logitech_receiver/base.py | 2 +- lib/logitech_receiver/notifications.py | 2 +- lib/logitech_receiver/receiver.py | 2 +- lib/logitech_receiver/status.py | 2 +- lib/solaar/ui/icons.py | 2 +- packaging/build_deb.sh | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/hidapi/hidconsole.py b/lib/hidapi/hidconsole.py index 53298f6a..f7426ff9 100644 --- a/lib/hidapi/hidconsole.py +++ b/lib/hidapi/hidconsole.py @@ -90,7 +90,7 @@ def _print(marker, data, scroll=False): sys.stdout.write('\n') # flush stdout manually... - # because trying to open stdin/out unbuffered programatically + # because trying to open stdin/out unbuffered programmatically # works much too differently in Python 2/3 sys.stdout.flush() diff --git a/lib/logitech_receiver/base.py b/lib/logitech_receiver/base.py index ee8c55e5..c2c6cbf9 100644 --- a/lib/logitech_receiver/base.py +++ b/lib/logitech_receiver/base.py @@ -386,7 +386,7 @@ def request(handle, devnumber, request_id, *params): if reply_data[2:3] == params[:1]: return reply_data[2:] else: - # hm, not mathing my request, and certainly not a notification + # hm, not matching my request, and certainly not a notification continue else: return reply_data[2:] diff --git a/lib/logitech_receiver/notifications.py b/lib/logitech_receiver/notifications.py index 8ed9f6e5..2dca9b94 100644 --- a/lib/logitech_receiver/notifications.py +++ b/lib/logitech_receiver/notifications.py @@ -18,7 +18,7 @@ ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # Handles incoming events from the receiver/devices, updating the related -# status object as appropiate. +# status object as appropriate. from __future__ import absolute_import, division, print_function, unicode_literals diff --git a/lib/logitech_receiver/receiver.py b/lib/logitech_receiver/receiver.py index 160f4260..0b1f5790 100644 --- a/lib/logitech_receiver/receiver.py +++ b/lib/logitech_receiver/receiver.py @@ -55,7 +55,7 @@ class PairedDevice(object): self.wpid = None self.descriptor = None - # mose, keyboard, etc (see _hidpp10.DEVICE_KIND) + # mouse, keyboard, etc (see _hidpp10.DEVICE_KIND) self._kind = None # Unifying peripherals report a codename. self._codename = None diff --git a/lib/logitech_receiver/status.py b/lib/logitech_receiver/status.py index 9baa1e0e..ed37e0d1 100644 --- a/lib/logitech_receiver/status.py +++ b/lib/logitech_receiver/status.py @@ -54,7 +54,7 @@ KEYS = _NamedInts( _BATTERY_ATTENTION_LEVEL = 5 # If no updates have been receiver from the device for a while, ping the device -# and update it status accordinly. +# and update it status accordingly. # _STATUS_TIMEOUT = 5 * 60 # seconds _LONG_SLEEP = 15 * 60 # seconds diff --git a/lib/solaar/ui/icons.py b/lib/solaar/ui/icons.py index 3426b0c4..e6eb045d 100644 --- a/lib/solaar/ui/icons.py +++ b/lib/solaar/ui/icons.py @@ -189,7 +189,7 @@ def device_icon_set(name='_', kind=None): _ICON_SETS[name] = icon_set # names of possible icons, in reverse order of likelihood - # the theme will hopefully pick up the most appropiate + # the theme will hopefully pick up the most appropriate names = ['preferences-desktop-peripherals'] if kind: if str(kind) == 'numpad': diff --git a/packaging/build_deb.sh b/packaging/build_deb.sh index 8ef210c1..1160dd2b 100755 --- a/packaging/build_deb.sh +++ b/packaging/build_deb.sh @@ -53,7 +53,7 @@ python2.7 setup.py sdist --formats=gztar --quiet test -d "$BUILD_DIR" # If the orig file already exists for this version, check that no source -# changes occured. +# changes occurred. if test -r "$ORIG_FILE"; then ORIG_SOURCES="$TMPDIR/$P_NAME-$P_VERSION" DIFF_OUTPUT="$TMPDIR/orig-diff-$P_VERSION"