Skip to content

Commit 695da95

Browse files
committed
pep8 codin update mushorg#3
1 parent ae81233 commit 695da95

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

clone.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ async def get_body(self, session):
165165
data = str(soup).encode()
166166
with open(os.path.join(self.target_path, hash_name), 'wb') as index_fh:
167167
index_fh.write(data)
168-
if content_type == 'text/css':
169-
css = cssutils.parseString(data, validate=self.css_validate)
168+
if content_type == 'text/css':
169+
css = cssutils.parseString(data, validate=self.css_validate)
170170
for carved_url in cssutils.getUrls(css):
171171
if carved_url.startswith('data'):
172172
continue

logger.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ def create_clone_logger(err_filename, logger_name):
4848
error_log_handler = logging.handlers.RotatingFileHandler(err_filename, encoding='utf-8')
4949
error_log_handler.setLevel(logging.ERROR)
5050
error_log_handler.setFormatter(formatter)
51-
logger.addHandler(error_log_handler)
51+
logger.addHandler(error_log_handler)

snare.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(self, meta, run_args, debug=False, keep_alive=75, **kwargs):
5555
self.dir = '/opt/snare/pages/{}'.format(run_args.page_dir)
5656

5757
self.meta = meta
58-
58+
5959
self.logger = logging.getLogger(__name__)
6060

6161
self.sroute = StaticRoute(

0 commit comments

Comments
 (0)