doctool: Sort input filenames when generating indexes
Order of inputs may not be pre-sorted if the shell does not sort arguments before passing them to commands. As shells are not required to sort arguments, make sure they are sorted in doctool itself.
This commit is contained in:
parent
ec8bb95b62
commit
bc7e16ef1d
1 changed files with 2 additions and 2 deletions
|
|
@ -240,7 +240,7 @@ class DocTool(object):
|
|||
|
||||
out = DupRefsRemover(sys.stdout)
|
||||
|
||||
for name in args:
|
||||
for name in sorted(args):
|
||||
if not name.endswith(".rst"):
|
||||
continue
|
||||
|
||||
|
|
@ -263,7 +263,7 @@ class DocTool(object):
|
|||
f.close()
|
||||
print
|
||||
|
||||
for name in args:
|
||||
for name in sorted(args):
|
||||
# Skip non-RST inputs
|
||||
if not name.endswith(".rst"):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue