summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2015-01-15 05:00:16 (GMT)
committerBenjamin Peterson <benjamin@python.org>2015-01-15 05:00:16 (GMT)
commit71f1c5c49646c365407c4686bf377b967f2f43b3 (patch)
tree33dbe6b5cfb78006334377719923b187b3ac1132 /Lib/distutils/command
parent93e42c03b78fdb6b51153e5825ab9dc9f90b5e16 (diff)
parent562b7cbff9ec2a69694aabfb4845208c851bd08e (diff)
downloadcpython-71f1c5c49646c365407c4686bf377b967f2f43b3.zip
cpython-71f1c5c49646c365407c4686bf377b967f2f43b3.tar.gz
cpython-71f1c5c49646c365407c4686bf377b967f2f43b3.tar.bz2
merge 3.4 (#23063)
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/check.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/distutils/command/check.py b/Lib/distutils/command/check.py
index 22b9349..7ebe707 100644
--- a/Lib/distutils/command/check.py
+++ b/Lib/distutils/command/check.py
@@ -122,7 +122,7 @@ class check(Command):
"""Returns warnings when the provided data doesn't compile."""
source_path = StringIO()
parser = Parser()
- settings = frontend.OptionParser().get_default_values()
+ settings = frontend.OptionParser(components=(Parser,)).get_default_values()
settings.tab_width = 4
settings.pep_references = None
settings.rfc_references = None
@@ -138,8 +138,8 @@ class check(Command):
document.note_source(source_path, -1)
try:
parser.parse(data, document)
- except AttributeError:
- reporter.messages.append((-1, 'Could not finish the parsing.',
- '', {}))
+ except AttributeError as e:
+ reporter.messages.append(
+ (-1, 'Could not finish the parsing: %s.' % e, '', {}))
return reporter.messages