Skip to content

Commit 424bbbf

Browse files
committed
black style
1 parent 4f43028 commit 424bbbf

File tree

6 files changed

+0
-9
lines changed

6 files changed

+0
-9
lines changed

src/mozloc/airport.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def cli_config_check() -> bool:
3030

3131

3232
def get_signal() -> str:
33-
3433
try:
3534
ret = subprocess.check_output([get_airport(), "--scan"], text=True, timeout=30)
3635
except subprocess.CalledProcessError as err:
@@ -40,7 +39,6 @@ def get_signal() -> str:
4039

4140

4241
def parse_signal(raw: str) -> list[dict[str, T.Any]]:
43-
4442
isroot = running_as_root()
4543

4644
psudo = r"\s*([0-9a-zA-Z\s\-\.]+)\s+([0-9a-f]{2}(?::[0-9a-f]{2}){5})\s+(-\d{2,3})"

src/mozloc/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def process_file(file: Path, mozilla_url: str):
2626

2727

2828
def log_wifi_loc(cadence_sec: float, mozilla_url: str, logfile: Path | None = None):
29-
3029
if logfile:
3130
logfile = Path(logfile).expanduser()
3231
with logfile.open("a") as f:

src/mozloc/netman.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def cli_config_check() -> bool:
3636

3737

3838
def get_signal() -> str:
39-
4039
cmd = [get_nmcli(), "-g", "SSID,BSSID,FREQ,SIGNAL", "device", "wifi"]
4140
# Debian stretch, Ubuntu 18.04
4241
# cmd = [EXE, "-t", "-f", "SSID,BSSID,FREQ,SIGNAL", "device", "wifi"]
@@ -61,7 +60,6 @@ def get_signal() -> str:
6160

6261

6362
def parse_signal(raw: str) -> list[dict[str, T.Any]]:
64-
6563
dat = pandas.read_csv(
6664
io.StringIO(raw),
6765
sep=r"(?<!\\):",

src/mozloc/netsh.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def get_signal() -> str:
5050

5151

5252
def parse_signal(raw: str) -> list[dict[str, T.Any]]:
53-
5453
dat: list[dict[str, str]] = []
5554
out = io.StringIO(raw)
5655

src/mozloc/tests/test_netman.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
@pytest.mark.skipif(is_ci, reason="CI doesn't usually have WiFi")
88
def test_nm_loc():
9-
109
mozloc = pytest.importorskip("mozloc")
1110
loc = mozloc.parse_signal(mozloc.get_signal())
1211

@@ -17,6 +16,5 @@ def test_nm_loc():
1716

1817
@pytest.mark.skipif(is_ci, reason="CI doesn't usually have WiFi")
1918
def test_nm_connection():
20-
2119
mozloc = pytest.importorskip("mozloc")
2220
assert mozloc.cli_config_check()

src/mozloc/web.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88

99
def get_loc_mozilla(dat: T.Sequence[T.Any], url: str):
10-
1110
if isinstance(dat, pandas.DataFrame):
1211
json_to = dat.to_json(orient="records")
1312
elif isinstance(dat, list):

0 commit comments

Comments
 (0)