Remove unused imports
This commit is contained in:
parent
32f1cf588e
commit
df2a598c9e
|
@ -75,7 +75,7 @@ def main():
|
|||
upload_parser.add_argument(
|
||||
"--whitelists",
|
||||
"-w",
|
||||
help="Either a whitelist hosts file or a directory containing whitelist hosts files", # noqa E501
|
||||
help="Either a whitelist hosts file or a directory containing whitelist hosts files", # noqa E501
|
||||
default="whitelist.txt", # Need to change this so it's optional
|
||||
)
|
||||
# Add subcommand: delete
|
||||
|
|
|
@ -45,7 +45,6 @@ def split_list(blocklists):
|
|||
|
||||
|
||||
def upload_to_cloudflare(lists, account_id: str, token: str) -> None:
|
||||
# A: It's iterating over the lists and uploading them to Cloudflare, the enumerate function is used to get the index of the list since lists is a list of lists
|
||||
for i, lst in enumerate(lists):
|
||||
list_name = f"adblock-list-{i + 1}"
|
||||
url = (
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
import os
|
||||
import pathlib
|
||||
|
||||
import requests
|
||||
from dotenv import load_dotenv
|
||||
|
||||
|
||||
class Config:
|
||||
|
|
Loading…
Reference in New Issue