summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorBob Kline <bkline@users.noreply.github.com>2022-04-03 22:31:03 (GMT)
committerGitHub <noreply@github.com>2022-04-03 22:31:03 (GMT)
commit6db2db91b96aaa1270c200ec931a2250fe2799c7 (patch)
tree76e39d1465827406a16a23efeef1ae3d584b8fc3 /Doc/tutorial
parent087d0fa5b97796560c0d8ceab4f0360fd54baf4f (diff)
downloadcpython-6db2db91b96aaa1270c200ec931a2250fe2799c7.zip
cpython-6db2db91b96aaa1270c200ec931a2250fe2799c7.tar.gz
cpython-6db2db91b96aaa1270c200ec931a2250fe2799c7.tar.bz2
Follow PEP-8 guidelines in tutorial for standard library (GH-26127)
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/stdlib.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/tutorial/stdlib.rst b/Doc/tutorial/stdlib.rst
index d90dc51..227a6d8 100644
--- a/Doc/tutorial/stdlib.rst
+++ b/Doc/tutorial/stdlib.rst
@@ -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()