Skip to content

Commit 71b375f

Browse files
committed
pylint fix
1 parent ba9717f commit 71b375f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

skeleton.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
class SimpleScript:
4242
""" might as well use a class. It'll make things easier later. """
4343

44-
def __init__(self, dry_run=False, verbose=0):
44+
def __init__(self, dry_run=False):
4545
""" init method, run at class creation """
4646
self.dry_run = dry_run
4747

@@ -61,10 +61,11 @@ def parse_args(argv):
6161
see: <https://docs.python.org/2/library/argparse.html>
6262
"""
6363
p = argparse.ArgumentParser(description='Sample python script skeleton.')
64-
p.add_argument('-d', '--dry-run', dest='dry_run', action='store_true', default=False,
65-
help="dry-run - don't actually make any changes")
64+
p.add_argument('-d', '--dry-run', dest='dry_run', action='store_true',
65+
default=False,
66+
help="dry-run - don't actually make any changes")
6667
p.add_argument('-v', '--verbose', dest='verbose', action='count', default=0,
67-
help='verbose output. specify twice for debug-level output.')
68+
help='verbose output. specify twice for debug-level output.')
6869

6970
args = p.parse_args(argv)
7071

0 commit comments

Comments
 (0)