Skip to content

Commit c3eee88

Browse files
author
brentru
committed
black, lint
1 parent 8b08754 commit c3eee88

File tree

5 files changed

+5
-15
lines changed

5 files changed

+5
-15
lines changed

adafruit_fona/adafruit_fona.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@ def iccid(self):
241241
if self._debug:
242242
print("\t---> AT+CCID: ")
243243
self._uart.write(b"AT+CCID\r\n")
244-
self._read_line(timeout=2000) #6.2.23, 2sec max. response time
244+
self._read_line(timeout=2000) # 6.2.23, 2sec max. response time
245245
iccid = self._buf.decode()
246-
self._read_line() # eat 'OK'
246+
self._read_line() # eat 'OK'
247247
return iccid
248248

249249
@property
@@ -434,7 +434,6 @@ def gps(self):
434434
)
435435
return status
436436

437-
438437
@gps.setter
439438
def gps(self, gps_on=False):
440439
"""Sets GPS module power, parses returned buffer.

adafruit_fona/adafruit_fona_gsm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@
2828
* Author(s): Brent Rubell
2929
3030
"""
31-
import time
31+
3232

3333
class GSM:
3434
"""Interface for interacting with FONA 2G GSM modems.
3535
"""
36+
3637
def __init__(self, fona, apn):
3738
"""Initializes interface with 2G GSM modem.
3839
:param adafruit_fona fona: The Adafruit FONA module we are using.
@@ -50,7 +51,7 @@ def __init__(self, fona, apn):
5051
def __enter__(self):
5152
return self
5253

53-
def __exit__(self):
54+
def __exit__(self, exception_type, exception_value, traceback):
5455
self.disconnect()
5556

5657
@property
@@ -71,7 +72,6 @@ def is_attached(self):
7172
return True
7273
return False
7374

74-
7575
@property
7676
def is_connected(self):
7777
"""Returns if attached to GSM

examples/fona_aio_post.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
# Initialize FONA module (this may take a few seconds)
2424
fona = FONA(uart, rst)
2525

26-
# Enable FONA debugging
27-
fona._debug = True
28-
2926
# initialize gsm
3027
gsm = GSM(fona, (secrets["apn"], secrets["apn_username"], secrets["apn_password"]))
3128

examples/fona_cheerlights.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@
2727
# Initialize FONA module (this may take a few seconds)
2828
fona = FONA(uart, rst)
2929

30-
# Enable FONA debugging
31-
fona._debug = True
32-
3330
# initialize gsm
3431
gsm = GSM(fona, (secrets["apn"], secrets["apn_username"], secrets["apn_password"]))
3532

examples/fona_simpletest.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
# Initialize FONA module (this may take a few seconds)
2929
fona = FONA(uart, rst)
3030

31-
# Enable FONA debugging
32-
fona._debug = True
33-
3431
# initialize gsm
3532
gsm = GSM(fona, (secrets["apn"], secrets["apn_username"], secrets["apn_password"]))
3633

0 commit comments

Comments
 (0)