Skip to content

Commit

Permalink
slight flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rytilahti committed Jul 8, 2017
1 parent 641e5c6 commit f05fff0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mirobo/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ class DeviceException(Exception):


class Device:
def __init__(self, ip: str, token: str, start_id: int=0, debug: int=0) -> None:
def __init__(self, ip: str, token: str,
start_id: int=0, debug: int=0) -> None:
self.ip = ip
self.port = 54321
self.token = bytes.fromhex(token)
Expand Down Expand Up @@ -63,7 +64,7 @@ def discover(addr: str=None) -> Any:
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_BROADCAST, 1)
s.settimeout(timeout)
for i in range(3):
for _i in range(3):
s.sendto(helobytes, (addr, 54321))
while True:
try:
Expand Down

0 comments on commit f05fff0

Please sign in to comment.