Skip to content

Commit ece2cd2

Browse files
committed
rearrange news entry, docs
1 parent 1871ac9 commit ece2cd2

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

Doc/library/ast.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ The following options are accepted:
379379
.. cmdoption:: -i <indent>
380380
--indent <indent>
381381

382-
Indentation of nodes in AST.
382+
Indentation of nodes in AST (number of spaces).
383383

384384
If :file:`infile` is specified its contents are parsed to AST and dumped
385385
to stdout. Otherwise, the content is read from stdin.

Lib/ast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ def main():
568568
help='include attributes such as line numbers and '
569569
'column offsets')
570570
parser.add_argument('-i', '--indent', type=int, default=3,
571-
help='indent level')
571+
help='indentation of nodes (number of spaces)')
572572
args = parser.parse_args()
573573

574574
with args.infile as infile:
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Add indent level and type comments parsing options to ast tool.
1+
Add ``-i`` and ``--indent`` (indent level), and ``--no-type-comments``
2+
(type comments) command line options to ast parsing tool.

0 commit comments

Comments
 (0)