Skip to content
Permalink
Browse files

style: some of the suggestions from flake8

  • Loading branch information...
zsquareplusc committed Feb 5, 2016
1 parent 6594df6 commit 43839140573c665d665fab30a4f724909eb3000a
@@ -122,7 +122,7 @@ def connection_made(self, transport):
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:
@@ -192,4 +192,3 @@ def stop(self):
logging.error(str(msg))

logging.info('--- exit ---')

@@ -6,7 +6,6 @@

from distutils.core import setup
import sys
import py2exe

sys.path.insert(0, '..')

@@ -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',
}
},

0 comments on commit 4383914

Please sign in to comment.
You can’t perform that action at this time.