Fix typos in comments

This commit is contained in:
Tom Swartz 2019-10-09 10:53:37 -04:00 committed by Peter Wu
parent 12f4e187d6
commit ae9e862f19
7 changed files with 7 additions and 7 deletions

View File

@ -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()

View File

@ -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:]

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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':

View File

@ -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"