diff options
author | Chris Liechti <cliechti@gmx.net> | 2016-02-05 21:09:49 +0100 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2016-02-05 21:09:49 +0100 |
commit | 43839140573c665d665fab30a4f724909eb3000a (patch) | |
tree | d1f68757a71cebf0aa0949dc557ec7241380acb5 /examples | |
parent | 6594df652e9f89687b76da6e3f77da49bdd4e1d9 (diff) | |
download | pyserial-git-43839140573c665d665fab30a4f724909eb3000a.tar.gz |
style: some of the suggestions from flake8
Diffstat (limited to 'examples')
-rw-r--r-- | examples/at_protocol.py | 2 | ||||
-rwxr-xr-x | examples/rfc2217_server.py | 1 | ||||
-rw-r--r-- | examples/setup-miniterm-py2exe.py | 1 | ||||
-rw-r--r-- | examples/setup-wxTerminal-py2exe.py | 10 |
4 files changed, 6 insertions, 8 deletions
diff --git a/examples/at_protocol.py b/examples/at_protocol.py index a3ccdfd..36eb6bd 100644 --- a/examples/at_protocol.py +++ b/examples/at_protocol.py @@ -122,7 +122,7 @@ if __name__ == '__main__': def handle_event(self, event): """Handle events and command responses starting with '+...'""" if event.startswith('+RRBDRES') and self._awaiting_response_for.startswith('AT+JRBD'): - rev = event[9:9+12] + rev = event[9:9 + 12] mac = ':'.join('%02X' % ord(x) for x in rev.decode('hex')[::-1]) self.event_responses.put(mac) else: diff --git a/examples/rfc2217_server.py b/examples/rfc2217_server.py index c94b837..10c47c5 100755 --- a/examples/rfc2217_server.py +++ b/examples/rfc2217_server.py @@ -192,4 +192,3 @@ it waits for the next connect. logging.error(str(msg)) logging.info('--- exit ---') - diff --git a/examples/setup-miniterm-py2exe.py b/examples/setup-miniterm-py2exe.py index 8784bfe..50ea0c3 100644 --- a/examples/setup-miniterm-py2exe.py +++ b/examples/setup-miniterm-py2exe.py @@ -6,7 +6,6 @@ from distutils.core import setup import sys -import py2exe sys.path.insert(0, '..') diff --git a/examples/setup-wxTerminal-py2exe.py b/examples/setup-wxTerminal-py2exe.py index caff719..bf2ca85 100644 --- a/examples/setup-wxTerminal-py2exe.py +++ b/examples/setup-wxTerminal-py2exe.py @@ -7,7 +7,6 @@ from distutils.core import setup import os import sys -import py2exe # this script is only useful for py2exe so just run that distutils command. # that allows to run it with a simple double click. @@ -17,10 +16,11 @@ sys.argv.append('py2exe') icon = os.path.join(os.path.dirname(sys.executable), 'py.ico') setup( - options={'py2exe': { - 'excludes': ['javax.comm'], - 'optimize': 2, - 'dist_dir': 'dist', + options={ + 'py2exe': { + 'excludes': ['javax.comm'], + 'optimize': 2, + 'dist_dir': 'dist', } }, |