Follow PEP-8 guidelines in tutorial for standard library (GH-26127)

This commit is contained in:
Bob Kline 2022-04-03 18:31:03 -04:00 committed by GitHub
parent 087d0fa5b9
commit 6db2db91b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -78,8 +78,9 @@ and an optional number of lines to be displayed::
import argparse
parser = argparse.ArgumentParser(prog = 'top',
description = 'Show top lines from each file')
parser = argparse.ArgumentParser(
prog='top',
description='Show top lines from each file')
parser.add_argument('filenames', nargs='+')
parser.add_argument('-l', '--lines', type=int, default=10)
args = parser.parse_args()