Skip to content

Commit 64562f2

Browse files
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
1 parent f7f9ffd commit 64562f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github_backup/github_backup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import errno
1212
import getpass
1313
import json
14-
import logging
1514
import os
1615
import re
1716
import select
@@ -42,6 +41,7 @@
4241
def _get_log_date():
4342
return datetime.datetime.isoformat(datetime.datetime.now())
4443

44+
4545
def log_info(message):
4646
"""
4747
Log message (str) or messages (List[str]) to stdout
@@ -133,7 +133,7 @@ def mask_password(url, secret='*****'):
133133
return url.replace(parsed.password, secret)
134134

135135

136-
def parse_args(args = None):
136+
def parse_args(args=None):
137137
parser = argparse.ArgumentParser(description='Backup a github account')
138138
parser.add_argument('user',
139139
metavar='USER',

0 commit comments

Comments
 (0)