style: some of the suggestions from flake8
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 @@
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 @@
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 @@
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',
}
},