From af0c408b01ffea098bb467373d3ae701b90eb27f Mon Sep 17 00:00:00 2001 From: minoplhy Date: Thu, 5 Aug 2021 20:38:01 +0700 Subject: [PATCH] Remove 'Unused' Modules and Remove some more 'Out Of Scope' Code --- crawler.py | 1 - maker_domains.py | 7 +------ maker_rpz.py | 7 +------ 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/crawler.py b/crawler.py index ec7c755..411f18e 100644 --- a/crawler.py +++ b/crawler.py @@ -1,5 +1,4 @@ import os -import sys import requests import re diff --git a/maker_domains.py b/maker_domains.py index d76239a..c4c7a7c 100644 --- a/maker_domains.py +++ b/maker_domains.py @@ -1,5 +1,3 @@ -import os -import sys import datetime import pytz @@ -33,7 +31,4 @@ def domainsbuilding(excluded ,incoming): f.write('\n'.join([line + '\n'])) elif not line.strip(): f.write('\n'.join([line + '\n'])) - f.close() - -if __name__ == "__main__": - domainsbuilding(None,'test.txt') \ No newline at end of file + f.close() \ No newline at end of file diff --git a/maker_rpz.py b/maker_rpz.py index 1dea1f5..40c6c38 100644 --- a/maker_rpz.py +++ b/maker_rpz.py @@ -1,5 +1,3 @@ -import os -import sys import datetime import pytz @@ -36,7 +34,4 @@ def RPZbuilding(excluded,incoming,output): f.write('\n'.join([line + '\n'])) elif not line.strip(): f.write('\n'.join([line + '\n'])) - f.close() - - if __name__ == "__main__": - RPZbuilding(None,'test.txt','test.rpz') \ No newline at end of file + f.close() \ No newline at end of file