mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)
This commit is contained in:
parent
a694f23948
commit
d5a5a33f12
4 changed files with 20 additions and 2 deletions
|
@ -120,7 +120,8 @@ class check(Command):
|
|||
|
||||
def _check_rst_data(self, data):
|
||||
"""Returns warnings when the provided data doesn't compile."""
|
||||
source_path = StringIO()
|
||||
# the include and csv_table directives need this to be a path
|
||||
source_path = self.distribution.script_name or 'setup.py'
|
||||
parser = Parser()
|
||||
settings = frontend.OptionParser(components=(Parser,)).get_default_values()
|
||||
settings.tab_width = 4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue