diff options
| author | Yuval Adam <_@yuv.al> | 2024-05-09 09:29:47 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2024-05-10 12:55:22 +0200 |
| commit | a234056e66407a99b966623622cc495e57aee3e3 (patch) | |
| tree | 505dde7e9f88624e70b7eb5fa343b2f1c818e041 /cli/ghpr.py | |
| parent | 66337d2902eab00f8238b526e5414b4ba263904d (diff) | |
Cleanup some lints
Diffstat (limited to 'cli/ghpr.py')
| -rw-r--r-- | cli/ghpr.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/ghpr.py b/cli/ghpr.py index 05c08ad..926a338 100644 --- a/cli/ghpr.py +++ b/cli/ghpr.py @@ -1,8 +1,6 @@ import click -import sys from pathlib import Path -from subprocess import run from .base import cli @@ -14,8 +12,7 @@ ROOT_PATH = Path(__file__).parents[1] def ghpr(path): with open(path, "r") as f: for line in f: - l = line.strip().split(",") - domain, handle, name = [x.strip() for x in l] + domain, handle, name = [x.strip() for x in line.strip().split(",")] handle = None if "@" in handle else handle fn = domain.replace(".", "") |
