From df2a598c9e61d44b87826e538410d61f2d51064a Mon Sep 17 00:00:00 2001 From: slashtechno <77907286+slashtechno@users.noreply.github.com> Date: Tue, 1 Aug 2023 12:20:18 -0500 Subject: [PATCH] Remove unused imports --- src/__main__.py | 2 +- src/utils/upload.py | 1 - src/utils/utils.py | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/__main__.py b/src/__main__.py index d768e57..c8af2e5 100644 --- a/src/__main__.py +++ b/src/__main__.py @@ -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 diff --git a/src/utils/upload.py b/src/utils/upload.py index 464836c..d97192b 100644 --- a/src/utils/upload.py +++ b/src/utils/upload.py @@ -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 = ( diff --git a/src/utils/utils.py b/src/utils/utils.py index de5b5dd..db9a187 100644 --- a/src/utils/utils.py +++ b/src/utils/utils.py @@ -1,8 +1,6 @@ -import os import pathlib import requests -from dotenv import load_dotenv class Config: