Fix typos in comments
This commit is contained in:
parent
12f4e187d6
commit
ae9e862f19
|
@ -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()
|
||||
|
||||
|
|
|
@ -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:]
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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':
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue