Remove -t and -tt functionality from ironpython#1131
Remove -t and -tt functionality from ironpython#1131slozier merged 7 commits intoIronLanguages:masterfrom
Conversation
slozier
left a comment
There was a problem hiding this comment.
Thanks for the PR.
Unfortunately I think you removed some of the wrong code paths. I guess in the description it should have been noted that the expected behavior is what we would have with the -tt option turned on. That means we should keep the code that would run with IndentationInconsistencySeverity == Severity.Error.
|
As for |
|
I moved the initialization of indentFormat to the State constructor. In testing on my end, there are a few new test cases which fail as a result of this change. I realized I went beyond the scope of the original issue, from simply ignoring the command line flags for indentation warnings to forcing the tokenizer to check for inconsistent indentation (though this is the desired behavior in Python3). I am not sure I have the ability to debug the behavior of the new ReadNewline() function without spending a lot more time. Let me know what you think a reasonable stopping point is. |
slozier
left a comment
There was a problem hiding this comment.
No problem! This is great (and exactly what I had in mind as resolution of the issue).
Most of the test failures were expected with this change and I amended the tests to pass. It looks like there was one bug in the original ReadNewlineWithChecks which I fixed.
|
Thanks for the PR! |
This is a PR for issue #982, which removes console flags for indentation inconsistency. As suggested by @BCSharp, the arguments parser ignores
-tand-ttby taking no action on them.I have not updated the test suite. I see that the relevant test is
test_t()intest_stdconsole.py. Curiously, the test suite only fails onnet46after I make these changes.Your comments are appreciated!