cpython/Lib
R. David Murray 7905d61b2c #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.
2010-08-01 03:31:09 +00:00
..
ctypes Issue #8966: Fix ctypes tests for Windows 2010-07-31 10:52:56 +00:00
curses Merged revisions 64623,64640,64665,64687,64689-64690,64719,64721,64735,64742,64744-64746,64756-64761,64767-64769,64771-64772,64774-64775,64788,64793,64835-64836 via svnmerge from 2008-07-16 03:43:04 +00:00
dbm #9397: remove mention of dbm.bsd which does not exist anymore. 2010-07-29 16:26:56 +00:00
distutils #8292: Fix three instances of truth tests on return values of filter() (which is always true in Python 3). 2010-07-31 21:54:24 +00:00
email Issue #4770: Restrict binascii module to accept only bytes (as specified). 2010-07-27 21:20:15 +00:00
encodings Merged revisions 81499,81506 via svnmerge from 2010-06-27 22:41:29 +00:00
html Recorded merge of revisions 81500-81501 via svnmerge from 2010-05-24 21:46:25 +00:00
http #5147: revert accidental indentation of header constant for MozillaCookieJar. 2010-07-31 22:11:11 +00:00
idlelib At least give IDLE 3.1 a release date. No further entries there for 3.2 though. 2010-07-31 09:03:30 +00:00
importlib Add importlib benchmarks which try to be "realistic" by importing the decimal 2010-07-22 07:40:56 +00:00
json Syntax cleanup. 2010-07-28 16:39:41 +00:00
lib2to3 Merged revisions 81478,82530-82531 via svnmerge from 2010-07-04 16:44:15 +00:00
logging Merged revisions 80712,81651 via svnmerge from 2010-06-27 20:54:28 +00:00
msilib Merged revisions 73390 via svnmerge from 2009-06-12 17:31:41 +00:00
multiprocessing Issue #7316: the acquire() method of lock objects in the :mod:threading 2010-04-14 15:44:10 +00:00
plat-aix4
plat-darwin These are present in the trunk but no longer in 3.x, which causes problems 2009-03-04 23:21:07 +00:00
plat-freebsd4 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-freebsd5 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-freebsd6 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-freebsd7 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-freebsd8 Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-generic
plat-linux2
plat-netbsd1
plat-next3
plat-os2emx Merged revisions 78644 via svnmerge from 2010-03-04 02:11:41 +00:00
plat-sunos5 Merged revisions 78678,78680,78682 via svnmerge from 2010-03-05 03:33:11 +00:00
plat-unixware7
pydoc_data Update pydoc topics and adapt Topics builder to Sphinx 1.0. 2010-07-31 08:27:46 +00:00
site-packages
sqlite3 #8845: expose sqlite3 inTransaction as RO in_transaction Connection attribute. 2010-06-01 01:32:12 +00:00
test #8620: Cmd no longer truncates last character if stdin ends without newline 2010-08-01 03:31:09 +00:00
tkinter Issue #9384: python -m tkinter will now display a simple demo applet. 2010-07-27 14:16:32 +00:00
unittest Fix error message for comparing single line strings in unittest.TestCase.assertEqual. 2010-07-10 13:52:22 +00:00
urllib Fix an oversight in r83294. unquote() should reject bytes. Issue #9301. 2010-07-31 08:56:55 +00:00
wsgiref Manually copy patch for bug 7250 from the release26-maint branch. I suck 2010-03-01 21:53:00 +00:00
xml #777884: make .normalize() do nothing for childless nodes, instead of raising an exception 2010-07-25 23:38:47 +00:00
xmlrpc #9032: XML-RPC client: Transport.request() retries on EPIPE error 2010-07-24 02:24:55 +00:00
__future__.py barry has already been causing test breakage 2009-04-01 20:38:13 +00:00
__phello__.foo.py
_abcoll.py Only expose the abstract base classes. 2010-07-31 07:12:50 +00:00
_compat_pickle.py Issue #6137: The pickle module now translates module names when loading 2009-06-04 20:32:06 +00:00
_dummy_thread.py Issue #7316: the acquire() method of lock objects in the :mod:threading 2010-04-14 15:44:10 +00:00
_markupbase.py Remove the htmllib and sgmllib modules as per PEP 3108. 2008-06-01 21:25:55 +00:00
_pyio.py Merged revisions 80720 via svnmerge from 2010-05-03 16:48:20 +00:00
_strptime.py PEP 8 conformance: class_ -> cls 2010-07-14 13:46:57 +00:00
_threading_local.py fixes issue #1522237, bad init check in _threading_local 2010-02-22 19:55:46 +00:00
_weakrefset.py Issue #7105: Make WeakKeyDictionary and WeakValueDictionary robust against 2010-01-08 17:54:23 +00:00
abc.py Merged revisions 77789 via svnmerge from 2010-01-27 02:25:58 +00:00
aifc.py Merged revisions 72425-72426 via svnmerge from 2009-05-07 18:24:38 +00:00
antigravity.py Another hidden treasure. 2009-06-03 17:21:17 +00:00
argparse.py Merged revisions 81492 via svnmerge from 2010-05-24 03:47:38 +00:00
ast.py allow byte literals 2010-07-11 23:06:06 +00:00
asynchat.py Fixed bugs 760475, 953599, and 1519. This is a translation of changelist 64768 2008-07-07 05:04:12 +00:00
asyncore.py #9354: Provide getsockopt() in asyncore file_wrapper(). Patch by Lukas Langa. 2010-07-28 08:19:35 +00:00
base64.py Fix failure introduced in r83182. 2010-07-28 00:23:21 +00:00
bdb.py Add Breakpoint.bpformat(), which returns the info usually printed by bpprint(). Necessary for major refactoring of pdb output handling. 2010-07-30 15:01:23 +00:00
binhex.py Issues #2715, #6621: Remove unused and undefined references to FSSpec 2009-08-02 20:08:54 +00:00
bisect.py Per the language summit, the optional fastpath imports should use from-import-star. 2009-03-31 17:51:51 +00:00
build_class.py
calendar.py Undo r81988 code change leaving added test. 2010-06-14 18:33:19 +00:00
cgi.py Merged revisions 78844 via svnmerge from 2010-03-11 22:05:58 +00:00
cgitb.py Merged revisions 70980,71059,71225,71234,71241,71243,71249,71251,71255,71266,71299,71329,71397-71398,71486 via svnmerge from 2009-04-11 19:48:14 +00:00
chunk.py
cmd.py #8620: Cmd no longer truncates last character if stdin ends without newline 2010-08-01 03:31:09 +00:00
code.py Merged revisions 75264,75268,75293,75318,75391-75392,75436,75478,75971,76003,76058,76140-76141,76231,76380,76428-76429 via svnmerge from 2009-11-25 17:46:26 +00:00
codecs.py Merged revisions 81471-81472 via svnmerge from 2010-05-22 16:59:09 +00:00
codeop.py correct porting error with raise #7161 2009-10-18 00:32:49 +00:00
collections.py Minor factoring 2010-04-11 20:41:56 +00:00
colorsys.py Merged revisions 68884,68973,68978,69003,69083,69112-69113 via svnmerge from 2009-01-30 03:39:35 +00:00
compileall.py Create __pycache__ dir when the pyc path is explicitly given 2010-05-08 19:52:21 +00:00
configparser.py #1090076: explain the behavior of *vars* in get() better. 2010-07-29 14:17:12 +00:00
contextlib.py Issue 9110. Adding ContextDecorator to contextlib. This enables the creation of APIs that act as decorators as well as context managers. contextlib.contextmanager changed to use ContextDecorator. 2010-06-30 12:17:50 +00:00
copy.py Merged revisions 76571 via svnmerge from 2009-11-28 15:58:27 +00:00
copyreg.py Rename copy_reg module to copyreg. 2008-05-11 08:55:36 +00:00
cProfile.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
csv.py Merged revisions 78384 via svnmerge from 2010-02-23 22:57:58 +00:00
datetime.py Make python version of fromtimestamp behave more like C. 2010-07-26 02:36:41 +00:00
decimal.py Issue #9136: Profiling Decimal gave 'dictionary changed size during iteration'. 2010-07-08 21:15:36 +00:00
difflib.py Merged revisions 80004 via svnmerge from 2010-04-12 16:58:02 +00:00
dis.py Issue 6507: accept source strings directly in dis.dis(). Original patch by Daniel Urban 2010-07-03 07:36:51 +00:00
doctest.py #5727: Restore the ability to use readline when calling into pdb in doctests. 2010-07-30 09:59:28 +00:00
dummy_threading.py Rename thread to _thread and dummy_thread to _dummy_thread. Issue #2875. 2008-05-25 13:05:15 +00:00
filecmp.py Use new form of with-statement instead of contextlib.nested(). 2009-06-04 00:11:54 +00:00
fileinput.py #1286: allow using fileinput.FileInput as context manager. 2010-07-31 20:08:15 +00:00
fnmatch.py Make fnmatch be more PEP 8 compliant. 2010-07-23 16:22:25 +00:00
formatter.py Fix formatter usage of filter(). Bug #3800. 2008-09-09 19:31:25 +00:00
fractions.py Issue #8188: Introduce a new scheme for computing hashes of numbers 2010-05-23 13:33:13 +00:00
ftplib.py Fix issue #8806: add SSL contexts support to ftplib 2010-05-26 18:06:04 +00:00
functools.py Re-commit r83327 now that the release is done. 2010-07-31 18:09:23 +00:00
genericpath.py Merged revisions 78018,78035-78040,78042-78043,78046,78048-78052,78054,78059,78075-78080 via svnmerge from 2010-03-14 10:23:39 +00:00
getopt.py Issue #4629: getopt raises an error if an argument ends with = whereas getopt 2010-07-24 00:49:20 +00:00
getpass.py Merged revisions 76000,76016 via svnmerge from 2009-11-01 18:42:17 +00:00
gettext.py Merged revisions 72506,72525-72526,72551,72558,72616,72654-72655,72689,72745,72750,72802,72812,72822,72824,72826-72827,72833,72876,72890,72923,72946,73026,73042,73045,73047,73065,73068-73069 via svnmerge from 2009-06-01 22:42:33 +00:00
glob.py Merged revisions 70712,70714,70764-70765,70769-70771,70773,70776-70777,70788-70789,70824,70828,70832,70836,70842,70851,70855,70857,70866-70872,70883,70885,70893-70894,70896-70897,70903,70905-70907,70915,70927,70933,70951,70960,70962-70964,70998,71001,71006,71008,71010-71011,71019,71037,71056,71094,71101-71103,71106,71119,71123,71149-71150,71203,71212,71214-71217,71221,71240 via svnmerge from 2009-04-05 19:13:16 +00:00
gzip.py Merged revisions 80762 via svnmerge from 2010-05-04 18:47:04 +00:00
hashlib.py Merged revisions 78528 via svnmerge from 2010-03-01 02:05:26 +00:00
heapq.py Remove coding cookie from heapq.py. 2010-07-04 19:23:49 +00:00
hmac.py
imaplib.py #5146: handle UID THREAD command correctly. 2010-07-31 22:32:52 +00:00
imghdr.py Merged revisions 65713 via svnmerge from 2008-08-16 16:48:16 +00:00
inspect.py only take into account positional arguments count in related error messages 2010-06-25 19:30:21 +00:00
io.py add myself 2009-05-01 20:45:43 +00:00
keyword.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
linecache.py Merged revisions 81428-81429,81432-81433,81437 via svnmerge from 2010-05-21 21:45:06 +00:00
locale.py Merged revisions 80512 via svnmerge from 2010-04-27 02:45:53 +00:00
macpath.py #9018: os.path.normcase() now raises a TypeError if the argument is not str or bytes. 2010-06-25 10:56:11 +00:00
macurl2path.py Fixing Issue6711 - macurl2path has typos that raise AttributeError 2009-08-16 06:43:50 +00:00
mailbox.py Merged revisions 77952,78030,78102,78104,78107,78206,78216,78296-78297,78328,78331-78332,78336,78339,78343,78378-78379,78415,78559,78717,78791 via svnmerge from 2010-03-21 22:03:03 +00:00
mailcap.py Issue #8496: make mailcap.lookup() always return a list, rather than an iterator. 2010-04-22 13:30:10 +00:00
mimetypes.py Merged revisions 78018,78035-78040,78042-78043,78046,78048-78052,78054,78059,78075-78080 via svnmerge from 2010-03-14 10:23:39 +00:00
modulefinder.py no 2.3 compat in the py3k lib #3676 2009-02-16 16:20:10 +00:00
netrc.py
nntplib.py Merged revisions 72640 via svnmerge from 2009-05-14 21:30:46 +00:00
ntpath.py #7909: the prefixes \\.\ and \\?\ indicate special Windows paths, do not try to manipulate them. See http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx for details. 2010-07-31 21:40:15 +00:00
nturl2path.py Fix for issue1153027, making Py3k changes similar to fix in issue918368. 2009-05-05 18:41:13 +00:00
numbers.py Issue 4998: restore utility of __slots__ on Fraction. 2009-02-12 17:58:36 +00:00
opcode.py Merged revisions 72912,72920,72940 via svnmerge from 2009-06-28 03:18:59 +00:00
optparse.py Merged revisions 71540,71563 via svnmerge from 2009-04-27 16:41:41 +00:00
os.py #8603: Add environb to os.__all__ 2010-07-29 17:19:38 +00:00
os2emxpath.py #9018: os.path.normcase() now raises a TypeError if the argument is not str or bytes. 2010-06-25 10:56:11 +00:00
pdb.py Part of #7245: when KeyboardInterrupt is raised while defining commands, restore the old commands instead of producing a traceback. 2010-07-30 22:20:16 +00:00
pickle.py Issue #9378: python -m pickle <pickle file> will now load and display 2010-07-27 23:02:38 +00:00
pickletools.py Syntax cleanup. 2010-07-28 16:39:41 +00:00
pipes.py Merged revisions 80030,80067,80069,80080-80081,80084,80432-80433,80465-80470,81059,81065-81067 via svnmerge from 2010-05-19 20:57:08 +00:00
pkgutil.py Issue 4005: Remove .sort() call on dict_keys object. 2009-07-05 06:42:44 +00:00
platform.py #8292: Fix three instances of truth tests on return values of filter() (which is always true in Python 3). 2010-07-31 21:54:24 +00:00
plistlib.py Merged revisions 80279 via svnmerge from 2010-04-20 21:00:34 +00:00
poplib.py Issue #6622: Fix 'variable referenced before assignment' bug in POP3.apop. 2009-08-06 16:06:25 +00:00
posixpath.py #9018: os.path.normcase() now raises a TypeError if the argument is not str or bytes. 2010-06-25 10:56:11 +00:00
pprint.py Issue 3976: fix pprint for sets, frozensets, and dicts containing unorderable types. 2009-11-19 01:07:05 +00:00
profile.py Remove traces of MacOS9 support. 2010-05-05 19:11:21 +00:00
pstats.py Forward port total_ordering() and cmp_to_key(). 2010-04-05 18:56:31 +00:00
pty.py Issue #3782: os.write() must not accept unicode strings 2008-09-15 23:02:56 +00:00
py_compile.py Create __pycache__ dir when the pyc path is explicitly given 2010-05-08 19:52:21 +00:00
pyclbr.py Merged revisions 62425-62429,62434-62436,62441,62444,62446-62448,62450-62455,62463,62465-62466,62469,62474,62476-62478,62480,62485,62492,62497-62498,62500,62507,62513-62514,62516,62521,62531,62535,62545-62546,62548-62551,62553-62559,62569,62574,62577,62593,62595,62604-62606,62608,62616,62626-62627,62636,62638,62644-62645,62647-62648,62651-62653,62656,62661,62663,62680,62686-62687,62696,62699-62703,62711 via svnmerge from 2008-05-04 22:42:01 +00:00
pydoc.py #8198: the Helper class should not save the stdin and stdout objects 2010-07-31 21:51:48 +00:00
queue.py port the queue change r70405 2009-03-21 17:36:10 +00:00
quopri.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
random.py Issue #7435: Remove duplicate int/long tests, and other 2009-12-05 20:28:34 +00:00
re.py The default size of the re module's compiled regular expression cache has 2010-07-27 05:31:29 +00:00
reprlib.py Rename the repr module file to reprlib.py. 2008-05-16 16:05:36 +00:00
rlcompleter.py Merged revisions 65168 via svnmerge from 2008-07-21 16:32:10 +00:00
runpy.py PEP 3147 2010-04-17 00:19:56 +00:00
sched.py Merged revisions 72932 via svnmerge from 2009-05-26 07:51:03 +00:00
shelve.py Merged revisions 78141-78142 via svnmerge from 2010-02-11 02:42:19 +00:00
shlex.py Revert -r82559; it's not clear that this is the right thing to do, and the change obscures the original intentions. 2010-07-04 20:07:09 +00:00
shutil.py Merged revisions 80837 via svnmerge from 2010-05-05 22:43:04 +00:00
site.py Merged revisions 81465-81466,81468,81679,81735,81760,81868,82183 via svnmerge from 2010-06-27 21:45:24 +00:00
smtpd.py Avoid triggering DeprecationWarnings in test_smtpd and smtpd. 2010-07-31 10:08:09 +00:00
smtplib.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
sndhdr.py Issue #9243: Fix sndhdr module and add unit tests, contributed by James Lee. 2010-07-13 23:04:56 +00:00
socket.py remove SocketIO.__del__; close() can handle it 2010-07-09 18:28:25 +00:00
socketserver.py Merged revisions 80484 via svnmerge from 2010-04-25 22:01:43 +00:00
sre_compile.py Merged revisions 66894 via svnmerge from 2008-10-14 23:07:40 +00:00
sre_constants.py #2834: Change re module semantics, so that str and bytes mixing is forbidden, 2008-08-19 17:56:33 +00:00
sre_parse.py #6509: fix re.sub to work properly when the pattern, the string, and the replacement were all bytes. Patch by Antoine Pitrou. 2010-03-06 15:24:08 +00:00
ssl.py Issue #4870: Add an options attribute to SSL contexts, as well as 2010-05-21 09:56:06 +00:00
stat.py Merged revisions 61644,61646-61647,61649-61652,61656-61658,61663,61665,61667 via svnmerge from 2008-03-20 10:49:03 +00:00
string.py #6630: allow customizing flags for compiling string.Template.idpattern. 2010-07-29 17:16:10 +00:00
stringprep.py
struct.py Issue #8973: Add __all__ to struct module, so that help(struct) correctly 2010-06-12 15:17:02 +00:00
subprocess.py Issue #9265: Incorrect name passed as arg[0] when shell=True 2010-07-19 14:20:53 +00:00
sunau.py Issue #8897: Fix sunau module, use bytes to write the header. Patch written by 2010-06-07 20:14:04 +00:00
symbol.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
symtable.py simplify this expression 2009-06-28 19:30:36 +00:00
sysconfig.py Without this patch the value of sysconfig.get_config_var('LDSHARED') 2010-07-20 16:07:10 +00:00
tabnanny.py Issue #8774: tabnanny uses the encoding cookie (#coding:...) to use the correct 2010-05-21 10:52:08 +00:00
tarfile.py Fix the breakage of Lib/tarfile.py on non-Windows platforms due to 2010-07-09 13:54:27 +00:00
telnetlib.py - fix issue #6106, Telnet.process_rawq default handling of WILL/WONT/DO/DONT 2009-07-26 22:23:04 +00:00
tempfile.py #6077: on Windows, fix truncation of a tempfile.TemporaryFile opened in "wt+" mode: 2009-11-30 00:08:56 +00:00
textwrap.py Merged revisions 74779-74786,74793,74795,74811,74860-74861,74863,74876,74886,74896,74901,74903,74908,74912,74930,74933,74943,74946,74952-74955,75015,75019,75032,75068,75076,75095,75098,75102,75129,75139,75230 via svnmerge from 2009-10-04 14:49:41 +00:00
this.py
threading.py Rip out old testing code that was inlined in threading. 2010-07-23 15:50:02 +00:00
timeit.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
token.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
tokenize.py fix for files with coding cookies and BOMs 2010-03-18 22:34:15 +00:00
trace.py Issue #9323: Fixed a bug in trace.py that resulted in loosing the name 2010-07-21 17:43:42 +00:00
traceback.py Issue #4486: When an exception has an explicit cause, do not print its implicit context too. 2009-11-28 16:12:28 +00:00
tty.py
turtle.py Merged revisions 79297,79310,79382,79425-79427,79450 via svnmerge from 2010-03-28 00:25:02 +00:00
types.py Merged revisions 62194,62197-62198,62204-62205,62214,62219-62221,62227,62229-62231,62233-62235,62237-62239 via svnmerge from 2008-04-09 08:37:03 +00:00
uu.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
uuid.py Merged revisions 82276 via svnmerge from 2010-06-27 12:45:47 +00:00
warnings.py Merged revisions 77402,77505,77510 via svnmerge from 2010-06-28 00:01:59 +00:00
wave.py use floor division where needed #7681 2010-01-13 03:49:50 +00:00
weakref.py Issue #7105: Make WeakKeyDictionary and WeakValueDictionary robust against 2010-01-08 17:54:23 +00:00
webbrowser.py Remove conditional import of 'ic', that module 2010-05-30 15:46:48 +00:00
wsgiref.egg-info
xdrlib.py
zipfile.py PEP 3147 2010-04-17 00:19:56 +00:00