- 22 Apr, 2015 10 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
Patch by Ned Batchelder.
-
doko@ubuntu.com authored
-
Berker Peksag authored
Patch by Isaac Schwabacher.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
(tclTomMath.h was broken) and non-final Tcl 8.6. Removed TK_VERSION_HEX.
-
Serhiy Storchaka authored
(tclTomMath.h was broken) and non-final Tcl 8.6.
-
Berker Peksag authored
Patch by Claudiu Popa.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
- 21 Apr, 2015 8 commits
-
-
Andrew Kuchling authored
-
Andrew Kuchling authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Christian Heimes authored
Get rid of unused-but-set-variable warning. len and len2 should be equal and len2 is technically more correct, too.
-
Greg Ward authored
Some applications (e.g. traditional Unix diff, version control systems) neither know nor care about the encodings of the files they are comparing. They are textual, but to the diff utility they are just bytes. This worked fine under Python 2, because all of the hardcoded strings in difflib.py are ASCII, so could safely be combined with old-style u'' strings. But it stopped working in 3.x. The solution is to use surrogate escapes for a lossless bytes->str->bytes roundtrip. That means {unified,context}_diff() can continue to just handle strings without worrying about bytes. Callers who have to deal with bytes will need to change to using diff_bytes(). Use case: Mercurial's test runner uses difflib to compare current hg output with known good output. But Mercurial's output is just bytes, since it can contain: * file contents (arbitrary unknown encoding) * filenames (arbitrary unknown encoding) * usernames and commit messages (usually UTF-8, but not guaranteed because old versions of Mercurial did not enforce it) * user messages (locale encoding) Since the output of any given hg command can include text in multiple encodings, it is hopeless to try to treat it as decodable Unicode text. It's just bytes, all the way down. This is an elaboration of a patch by Terry Reedy.
-
- 20 Apr, 2015 20 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
Patch from Van Lindberg
-
doko@ubuntu.com authored
-
Guido van Rossum authored
-
Guido van Rossum authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Larry Hastings authored
-
Larry Hastings authored
-
Serhiy Storchaka authored
on Windows instead of silently truncate them. Removed no longer used _PyUnicode_HasNULChars().
-
Serhiy Storchaka authored
on Windows instead of silently truncate them.
-
Serhiy Storchaka authored
0-0xffff for empty data.
-
Serhiy Storchaka authored
0-0xffff for empty data.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Benjamin Peterson authored
-
Benjamin Peterson authored
-
Steve Dower authored
-
Steve Dower authored
-
Steve Dower authored
-
- 19 Apr, 2015 2 commits
-
-
Larry Hastings authored
-
Larry Hastings authored
-