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')
|
sys.stdout.write('\n')
|
||||||
|
|
||||||
# flush stdout manually...
|
# 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
|
# works much too differently in Python 2/3
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|
|
@ -386,7 +386,7 @@ def request(handle, devnumber, request_id, *params):
|
||||||
if reply_data[2:3] == params[:1]:
|
if reply_data[2:3] == params[:1]:
|
||||||
return reply_data[2:]
|
return reply_data[2:]
|
||||||
else:
|
else:
|
||||||
# hm, not mathing my request, and certainly not a notification
|
# hm, not matching my request, and certainly not a notification
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
return reply_data[2:]
|
return reply_data[2:]
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
|
||||||
# Handles incoming events from the receiver/devices, updating the related
|
# 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
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ class PairedDevice(object):
|
||||||
self.wpid = None
|
self.wpid = None
|
||||||
self.descriptor = None
|
self.descriptor = None
|
||||||
|
|
||||||
# mose, keyboard, etc (see _hidpp10.DEVICE_KIND)
|
# mouse, keyboard, etc (see _hidpp10.DEVICE_KIND)
|
||||||
self._kind = None
|
self._kind = None
|
||||||
# Unifying peripherals report a codename.
|
# Unifying peripherals report a codename.
|
||||||
self._codename = None
|
self._codename = None
|
||||||
|
|
|
@ -54,7 +54,7 @@ KEYS = _NamedInts(
|
||||||
_BATTERY_ATTENTION_LEVEL = 5
|
_BATTERY_ATTENTION_LEVEL = 5
|
||||||
|
|
||||||
# If no updates have been receiver from the device for a while, ping the device
|
# 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
|
# _STATUS_TIMEOUT = 5 * 60 # seconds
|
||||||
_LONG_SLEEP = 15 * 60 # seconds
|
_LONG_SLEEP = 15 * 60 # seconds
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,7 @@ def device_icon_set(name='_', kind=None):
|
||||||
_ICON_SETS[name] = icon_set
|
_ICON_SETS[name] = icon_set
|
||||||
|
|
||||||
# names of possible icons, in reverse order of likelihood
|
# 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']
|
names = ['preferences-desktop-peripherals']
|
||||||
if kind:
|
if kind:
|
||||||
if str(kind) == 'numpad':
|
if str(kind) == 'numpad':
|
||||||
|
|
|
@ -53,7 +53,7 @@ python2.7 setup.py sdist --formats=gztar --quiet
|
||||||
test -d "$BUILD_DIR"
|
test -d "$BUILD_DIR"
|
||||||
|
|
||||||
# If the orig file already exists for this version, check that no source
|
# If the orig file already exists for this version, check that no source
|
||||||
# changes occured.
|
# changes occurred.
|
||||||
if test -r "$ORIG_FILE"; then
|
if test -r "$ORIG_FILE"; then
|
||||||
ORIG_SOURCES="$TMPDIR/$P_NAME-$P_VERSION"
|
ORIG_SOURCES="$TMPDIR/$P_NAME-$P_VERSION"
|
||||||
DIFF_OUTPUT="$TMPDIR/orig-diff-$P_VERSION"
|
DIFF_OUTPUT="$TMPDIR/orig-diff-$P_VERSION"
|
||||||
|
|
Loading…
Reference in New Issue