refactor: remove commented out code
It is recommended to remove any commented code in your codebase.
This commit is contained in:
parent
255994447a
commit
d8b4bbe2a1
|
@ -1,4 +1,3 @@
|
||||||
# This is a scriprt to undo the changes made by adblock-zerotrust.py
|
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
|
@ -17,7 +16,6 @@ async def delete_adblock_list(lists: dict, account_id: str, token: str):
|
||||||
"Authorization": f"Bearer {token}",
|
"Authorization": f"Bearer {token}",
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
}
|
}
|
||||||
# response = requests.delete(url, headers=headers, timeout=10)
|
|
||||||
response = await client.delete(url, headers=headers, timeout=10)
|
response = await client.delete(url, headers=headers, timeout=10)
|
||||||
if response.status_code != 200:
|
if response.status_code != 200:
|
||||||
print(f"Error deleting list: {response.text}")
|
print(f"Error deleting list: {response.text}")
|
||||||
|
|
|
@ -78,7 +78,6 @@ def convert_to_list(file: pathlib.Path) -> list:
|
||||||
for match in matches
|
for match in matches
|
||||||
if match and match.group(1) not in loopback
|
if match and match.group(1) not in loopback
|
||||||
]
|
]
|
||||||
# print(f"First 5 hosts: {hosts[:5]}")
|
|
||||||
return hosts
|
return hosts
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue