Skip to content

Commit

Permalink
pep8 codin update mushorg#3
Browse files Browse the repository at this point in the history
  • Loading branch information
viskey98 committed May 3, 2018
1 parent ae81233 commit 695da95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ async def get_body(self, session):
data = str(soup).encode()
with open(os.path.join(self.target_path, hash_name), 'wb') as index_fh:
index_fh.write(data)
if content_type == 'text/css':
css = cssutils.parseString(data, validate=self.css_validate)
if content_type == 'text/css':
css = cssutils.parseString(data, validate=self.css_validate)
for carved_url in cssutils.getUrls(css):
if carved_url.startswith('data'):
continue
Expand Down
2 changes: 1 addition & 1 deletion logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ def create_clone_logger(err_filename, logger_name):
error_log_handler = logging.handlers.RotatingFileHandler(err_filename, encoding='utf-8')
error_log_handler.setLevel(logging.ERROR)
error_log_handler.setFormatter(formatter)
logger.addHandler(error_log_handler)
logger.addHandler(error_log_handler)
2 changes: 1 addition & 1 deletion snare.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, meta, run_args, debug=False, keep_alive=75, **kwargs):
self.dir = '/opt/snare/pages/{}'.format(run_args.page_dir)

self.meta = meta

self.logger = logging.getLogger(__name__)

self.sroute = StaticRoute(
Expand Down

0 comments on commit 695da95

Please sign in to comment.