Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merged revisions 83380 via svnmerge from | R. David Murray | 2010-08-01 | 1 | -0/+27 |
| | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83380 | r.david.murray | 2010-07-31 23:31:09 -0400 (Sat, 31 Jul 2010) | 17 lines #8620: Cmd no longer truncates last character if stdin ends without newline Cmd used to blindly chop off the last character of every input line. If the input reached EOF and there was no final new line, it would truncate the last character of the last command. This fix instead strips trailing \r\n from the input lines. While this is a small behavior change, it should not break any working code, since feeding a '\r\n' terminated file to Cmd would previously leave the \r's on the lines, resulting in failed command execution. I wrote the unit test in preparation for a PyOhio TeachMe session run by Catherine Devlin, and we can thank Catherine and the PyOhio session attendees for the fix. I've added Catherine to the Acks file for organizing and leading the TeachMe session, out of which we will hopefully get some new contributors. ........ | ||||
* | Issue #7449, part 10: test_cmd imports trace module using ↵ | Victor Stinner | 2010-04-27 | 1 | -2/+3 |
| | | | | | | | | | | test_support.import_module() Use test_support.import_module() instead of import to raise a SkipTest exception if the import fail. Import trace fails if the threading module is missing. See also part 3: test_doctest: import trace module in test_coverage(). | ||||
* | #5991: let completion for the "help" command include help topics. | Georg Brandl | 2010-01-06 | 1 | -2/+4 |
| | | | | | This also simplifies the Cmd.get_names() method implementation; it was written at a time where dir() didn't consider base class attributes. | ||||
* | Small fixes to test_cmd: fix signature of do_shell, remove duplicate import, ↵ | Georg Brandl | 2010-01-06 | 1 | -2/+4 |
| | | | | add option to run the custom Cmd class. | ||||
* | Patch #2167 from calvin: Remove unused imports | Christian Heimes | 2008-02-23 | 1 | -2/+1 |
| | |||||
* | Add test suite for cmd module. | Georg Brandl | 2007-12-01 | 1 | -0/+186 |
Written by Michael Schneider for GHOP. |