Skip to content

Commit 4575a14

Browse files
committed
black format
1 parent 2e9683f commit 4575a14

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

adafruit_rockblock.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,23 @@
4545
__version__ = "0.0.0-auto.0"
4646
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_RockBlock.git"
4747

48+
4849
class RockBlock:
49-
'''Driver for RockBLOCK Iridium satellite modem.'''
50+
"""Driver for RockBLOCK Iridium satellite modem."""
5051

5152
def __init__(self, uart, baudrate=19200):
5253
self._uart = uart
5354
self._uart.baudrate = baudrate
5455

5556
def _uart_xfer(self, cmd):
56-
'''Send AT command and return response.'''
57+
"""Send AT command and return response."""
5758
# response = ATCMD\r\nRESP\r\n\r\nOK\r\n
5859
# or = ATCMD\r\nERROR\r\n
5960

60-
cmd = str.encode('AT'+cmd)
61+
cmd = str.encode("AT" + cmd)
6162

6263
self._uart.reset_input_buffer()
63-
self._uart.write(cmd+'\r')
64+
self._uart.write(cmd + "\r")
6465

6566
resp = None
6667
if self._uart.readline().strip() == cmd:
@@ -71,5 +72,5 @@ def _uart_xfer(self, cmd):
7172

7273
@property
7374
def model(self):
74-
'''Return phone model.'''
75-
return self._uart_xfer('+GMM')
75+
"""Return phone model."""
76+
return self._uart_xfer("+GMM")

0 commit comments

Comments
 (0)