mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Update CHANGES for PR #4653
This commit is contained in:
parent
f4a527d8a6
commit
4b0ff9a0d3
@ -375,7 +375,7 @@ def setup(app):
|
|||||||
def debug(argv):
|
def debug(argv):
|
||||||
# type: (List[unicode]) -> None
|
# type: (List[unicode]) -> None
|
||||||
"""Debug functionality to print out an inventory"""
|
"""Debug functionality to print out an inventory"""
|
||||||
if len(argv) < 2:
|
if len(argv) < 1:
|
||||||
print("Print out an inventory file.\n"
|
print("Print out an inventory file.\n"
|
||||||
"Error: must specify local path or URL to an inventory file.",
|
"Error: must specify local path or URL to an inventory file.",
|
||||||
file=sys.stderr)
|
file=sys.stderr)
|
||||||
@ -392,7 +392,7 @@ def debug(argv):
|
|||||||
def warn(self, msg):
|
def warn(self, msg):
|
||||||
print(msg, file=sys.stderr)
|
print(msg, file=sys.stderr)
|
||||||
|
|
||||||
filename = argv[1]
|
filename = argv[0]
|
||||||
invdata = fetch_inventory(MockApp(), '', filename) # type: ignore
|
invdata = fetch_inventory(MockApp(), '', filename) # type: ignore
|
||||||
for key in sorted(invdata or {}):
|
for key in sorted(invdata or {}):
|
||||||
print(key)
|
print(key)
|
||||||
|
Loading…
Reference in New Issue
Block a user