From 64562f2460ef76927563ffa4f42bce7d685d1669 Mon Sep 17 00:00:00 2001 From: atinary-afoulon <87645799+atinary-afoulon@users.noreply.github.com> Date: Mon, 13 Dec 2021 14:33:21 +0100 Subject: [PATCH] Fix lint issues raised by Flake8 According to job: [ https://app.circleci.com/pipelines/github/josegonzalez/python-github-backup/30/workflows/74eb93f2-2505-435d-b728-03b3cc04c14a/jobs/23 ] Failed on the following checks: ./github_backup/github_backup.py:20:1: F811 redefinition of unused 'logging' from line 14 ./github_backup/github_backup.py:45:1: E302 expected 2 blank lines, found 1 ./github_backup/github_backup.py:136:20: E251 unexpected spaces around keyword / parameter equals --- github_backup/github_backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github_backup/github_backup.py b/github_backup/github_backup.py index 18bb3d5..e9217cc 100644 --- a/github_backup/github_backup.py +++ b/github_backup/github_backup.py @@ -11,7 +11,6 @@ import datetime import errno import getpass import json -import logging import os import re import select @@ -42,6 +41,7 @@ FNULL = open(os.devnull, 'w') def _get_log_date(): return datetime.datetime.isoformat(datetime.datetime.now()) + def log_info(message): """ Log message (str) or messages (List[str]) to stdout @@ -133,7 +133,7 @@ def mask_password(url, secret='*****'): return url.replace(parsed.password, secret) -def parse_args(args = None): +def parse_args(args=None): parser = argparse.ArgumentParser(description='Backup a github account') parser.add_argument('user', metavar='USER',