cpython/Lib
Kurt B. Kaiser 44fa8f650f Make IDLE's file decode more robust.
1. coding_spec() only looks at first two lines of bytes to avoid
   a UnicodeDecodeError if rest of file is e.g. latin-1
2. coding_spec() handles \n or \r
3. Clarify that locale_encoding is used by calling it that.  However, it's
   still called IOBinding.encoding in other parts of IDLE and that usage
   needs to be checked to verify that's still what is desired.
4. Return None from _decode() if decoding fails.
5. Name the vars representing bytes and strings or chars appropriately.
2007-09-07 05:06:21 +00:00
..
bsddb merge r58023 to fix issue1112 on windows. make this test more robust 2007-09-06 23:06:50 +00:00
ctypes Add a workaround for a strange bug on win64, when _ctypes is compiled 2007-08-31 13:06:44 +00:00
curses
distutils Run 2to3's fix_has_key over distutils. 2007-09-01 20:37:22 +00:00
email Restore test_email for a1. It passes completely. 2007-08-31 11:19:21 +00:00
encodings More raise statement normalization. 2007-08-30 18:18:27 +00:00
hotshot Fix raise statements in hotshot. 2007-08-22 21:45:02 +00:00
idlelib Make IDLE's file decode more robust. 2007-09-07 05:06:21 +00:00
lib-tk Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
logging Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
msilib Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
plat-aix4
plat-atheos
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-generic
plat-linux2
plat-mac Fix Mac build, patch #1091 by Humberto Diogenes. 2007-09-03 07:27:49 +00:00
plat-netbsd1
plat-next3
plat-os2emx Run 2to3's fix_has_key over Lib/plat-os2emx/. 2007-09-01 20:35:04 +00:00
plat-sunos5 Merged revisions 56492-56752 via svnmerge from 2007-08-05 15:29:28 +00:00
plat-unixware7
site-packages
sqlite3 Fix the sqlite test. Blobs should be created using buffer(b"blob"), 2007-08-29 03:44:33 +00:00
test Use an event variable to wait for the server to be ready, not time.sleep(). 2007-09-06 03:57:23 +00:00
wsgiref Issue #1066: implement PEP 3109, 2/3 of PEP 3134. 2007-08-31 00:04:24 +00:00
xml r698@Silves: collinwinter | 2007-08-24 10:57:15 -0700 2007-08-24 18:57:22 +00:00
__future__.py
__phello__.foo.py
_abcoll.py
_LWPCookieJar.py
_MozillaCookieJar.py
_strptime.py
_threading_local.py
abc.py Rename __whatever variables defined by ABCMeta to _abc_whatever, so as 2007-08-20 19:29:24 +00:00
aifc.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
anydbm.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
asynchat.py Fix test_smtplib by munging asynchat some more. 2007-08-31 00:20:14 +00:00
asyncore.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
base64.py Forgot one. This makes test_urllib2.py pass. 2007-08-29 02:30:49 +00:00
BaseHTTPServer.py Fixes by John Reese and Jacques Frechet that make test_xmlrpc pass. 2007-08-22 23:45:42 +00:00
bdb.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
binhex.py Convert various string literals to bytes. 2007-08-29 17:26:34 +00:00
bisect.py
build_class.py
calendar.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
cgi.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
CGIHTTPServer.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
cgitb.py
chunk.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
cmd.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
code.py Merged revisions 56492-56752 via svnmerge from 2007-08-05 15:29:28 +00:00
codecs.py
codeop.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
collections.py Getting rid of cPickle. Mmm, feels good! 2007-07-20 00:22:32 +00:00
colorsys.py
commands.py
compileall.py Improve error handling; don't die from unicode errors or syntax errors. 2007-07-15 13:01:48 +00:00
ConfigParser.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
contextlib.py Fix a poorly-translated raise statement in contextlib. 2007-09-01 20:27:58 +00:00
Cookie.py Fix test_cookie.py. 2007-07-20 00:30:38 +00:00
cookielib.py SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
copy.py
copy_reg.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
cProfile.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
csv.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
dbhash.py
decimal.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
difflib.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
dircache.py
dis.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
doctest.py Issue #1066: implement PEP 3109, 2/3 of PEP 3134. 2007-08-31 00:04:24 +00:00
DocXMLRPCServer.py
dumbdbm.py Make dumbdbm use bytes for keys consistently. 2007-08-28 00:09:54 +00:00
dummy_thread.py
dummy_threading.py
filecmp.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
fileinput.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
fnmatch.py
formatter.py
fpformat.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
ftplib.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
functools.py
genericpath.py
getopt.py Change a bunch of file encodings from Latin-1 to UTF-8. 2007-07-16 23:10:57 +00:00
getpass.py
gettext.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
glob.py
gzip.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
hashlib.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
heapq.py Merged revisions 56125-56153 via svnmerge from 2007-07-03 08:25:58 +00:00
hmac.py Changes in anticipation of stricter str vs. bytes enforcement. 2007-08-27 17:23:59 +00:00
htmlentitydefs.py
htmllib.py
HTMLParser.py
httplib.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
ihooks.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
imaplib.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
imghdr.py Improved patches for sndhdr and imghdr by Victor Stinner, who writes: 2007-08-13 17:50:00 +00:00
imputil.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
inspect.py Fix docstring for getfullargspec(). 2007-09-07 02:12:14 +00:00
io.py In rseponse to bug# 1029, force the newline default for StringIO to "\n", 2007-08-29 18:31:16 +00:00
keyword.py
linecache.py Be even more lenient when catching errors from readlines(). 2007-07-10 11:34:31 +00:00
locale.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
macpath.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
macurl2path.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
mailbox.py Force test_mailbox and test_old_mailbox into submission. 2007-08-31 04:25:05 +00:00
mailcap.py
markupbase.py
mhlib.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
mimetools.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
mimetypes.py
modulefinder.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
multifile.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
mutex.py
netrc.py
new.py
nntplib.py
ntpath.py Merged revisions 57221-57391 via svnmerge from 2007-08-24 16:32:05 +00:00
nturl2path.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
numbers.py Add numbers.py. I suspect this is an old version, but Jeffrey is out 2007-08-30 17:45:54 +00:00
opcode.py Remove the simple slicing API. All slicing is now done with slice objects. 2007-08-30 22:57:53 +00:00
optparse.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
os.py Make the _wrap_close type (which is returned by os.popen) iterable. 2007-09-04 11:27:47 +00:00
os2emxpath.py
pdb.doc
pdb.py Add "print" command to pdb, "print s" previously invoked the print statement. 2007-09-04 07:07:56 +00:00
pickle.py More str/bytes fixes. 2007-08-27 23:18:54 +00:00
pickletools.py Change string literals to bytes, since they are compared to bytes. 2007-08-29 19:07:40 +00:00
pipes.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
pkgutil.py Remove RISCOS support 2007-08-16 14:35:24 +00:00
platform.py Try to get test_pep352 and maybe test_platform to work on a Windows buildbot 2007-08-30 06:16:26 +00:00
poplib.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
posixpath.py Merged revisions 57221-57391 via svnmerge from 2007-08-24 16:32:05 +00:00
pprint.py SF patch# 1770008 by Christian Heimes (plus some extras). 2007-08-09 01:03:29 +00:00
profile.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
pstats.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
pty.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
py_compile.py A small tweak to avoid calling traceback.format_exception_only() with 2007-08-10 17:36:34 +00:00
pyclbr.py
pydoc.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
Queue.py
quopri.py Fix quopri to operate consistently on bytes. 2007-07-28 17:52:25 +00:00
random.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
re.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
repr.py
rfc822.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
rlcompleter.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
robotparser.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
runpy.py Merge the trunk changes in. Breaks socket.ssl for now. 2007-08-28 21:37:11 +00:00
sched.py
sgmllib.py Merged revisions 56782-56847 via svnmerge from 2007-08-09 14:26:58 +00:00
shelve.py Change shelve to require a bytes-oriented dict as 2007-08-11 06:57:14 +00:00
shlex.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
shutil.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
SimpleHTTPServer.py
SimpleXMLRPCServer.py Merged revisions 57152-57220 via svnmerge from 2007-08-20 19:06:03 +00:00
site.py Three patches from issue #1047, by Amaury Forgeot d'Arc: 2007-08-29 18:38:11 +00:00
smtpd.py Merged revisions 56753-56781 via svnmerge from 2007-08-06 23:33:07 +00:00
smtplib.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
sndhdr.py Improved patches for sndhdr and imghdr by Victor Stinner, who writes: 2007-08-13 17:50:00 +00:00
socket.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
SocketServer.py SF patch# 1764815 by Paul Colomiets. 2007-08-03 19:03:39 +00:00
sre.py
sre_compile.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
sre_constants.py
sre_parse.py Remove the simple slicing API. All slicing is now done with slice objects. 2007-08-30 22:57:53 +00:00
ssl.py Merged revisions 57620-57771 via svnmerge from 2007-08-30 22:15:33 +00:00
stat.py
statvfs.py
string.py Changed some ValueError's to KeyError and IndexError. 2007-09-04 23:04:22 +00:00
stringprep.py
struct.py
subprocess.py More str/bytes goodness. 2007-08-27 23:58:21 +00:00
sunau.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
sunaudio.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
symbol.py Regenerate Lib/symbol.py. 2007-08-31 07:58:27 +00:00
symtable.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
tabnanny.py
tarfile.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
telnetlib.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
tempfile.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
textwrap.py string.maketrans() now produces translation tables for bytes.translate() -- wrong module? 2007-08-31 10:37:15 +00:00
this.py
threading.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
timeit.py
token.py
tokenize.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
trace.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
traceback.py Merged revisions 56492-56752 via svnmerge from 2007-08-05 15:29:28 +00:00
tty.py
types.py
unittest.py Extend unittest's fail*AlmostEqual methods to work on complex numbers. 2007-09-06 18:55:17 +00:00
urllib.py string.maketrans() now produces translation tables for bytes.translate() -- wrong module? 2007-08-31 10:37:15 +00:00
urllib2.py Issue #1066: implement PEP 3109, 2/3 of PEP 3134. 2007-08-31 00:04:24 +00:00
urlparse.py
user.py Kill execfile(), use exec() instead 2007-08-12 00:43:29 +00:00
UserDict.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
UserList.py Remove the simple slicing API. All slicing is now done with slice objects. 2007-08-30 22:57:53 +00:00
UserString.py Remove the simple slicing API. All slicing is now done with slice objects. 2007-08-30 22:57:53 +00:00
uu.py Changes in anticipation of stricter str vs. bytes enforcement. 2007-08-27 17:23:59 +00:00
uuid.py Make uuid.py thread-safe. Fix by Yuri Ginsburg. 2007-08-24 04:13:42 +00:00
warnings.py
wave.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
weakref.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
webbrowser.py Merged revisions 56154-56264 via svnmerge from 2007-07-11 13:09:30 +00:00
whichdb.py Remove RISCOS support 2007-08-16 14:35:24 +00:00
wsgiref.egg-info
xdrlib.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00
xmlrpclib.py Fix fall-out of str.decode removal. 2007-08-31 14:07:27 +00:00
zipfile.py Raise statement normalization in Lib/. 2007-08-30 01:19:48 +00:00