Staging
v0.8.1
Revision 0b6f6c82b51b7071d88f48abb3192bf3dc2a2d24 authored by R David Murray on 25 May 2012, 22:42:14 UTC, committed by R David Murray on 25 May 2012, 22:42:14 UTC
When the new policies are used (and only when the new policies are explicitly
used) headers turn into objects that have attributes based on their parsed
values, and can be set using objects that encapsulate the values, as well as
set directly from unicode strings.  The folding algorithm then takes care of
encoding unicode where needed, and folding according to the highest level
syntactic objects.

With this patch only date and time headers are parsed as anything other than
unstructured, but that is all the helper methods in the existing API handle.
I do plan to add more parsers, and complete the set specified in the RFC
before the package becomes stable.
1 parent 0fa2edd
History
File Mode Size
collections
concurrent
ctypes
curses
dbm
distutils
email
encodings
html
http
idlelib
importlib
json
lib2to3
logging
msilib
multiprocessing
packaging
plat-aix4
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic
plat-linux
plat-netbsd1
plat-next3
plat-os2emx
plat-sunos5
plat-unixware7
pydoc_data
site-packages
sqlite3
test
tkinter
turtledemo
unittest
urllib
wsgiref
xml
xmlrpc
__future__.py -rw-r--r-- 4.5 KB
__phello__.foo.py -rw-r--r-- 64 bytes
_compat_pickle.py -rw-r--r-- 3.0 KB
_dummy_thread.py -rw-r--r-- 4.7 KB
_markupbase.py -rw-r--r-- 14.3 KB
_pyio.py -rw-r--r-- 70.4 KB
_strptime.py -rw-r--r-- 21.1 KB
_threading_local.py -rw-r--r-- 7.2 KB
_weakrefset.py -rw-r--r-- 5.4 KB
abc.py -rw-r--r-- 7.9 KB
aifc.py -rw-r--r-- 29.9 KB
antigravity.py -rw-r--r-- 475 bytes
argparse.py -rw-r--r-- 87.4 KB
ast.py -rw-r--r-- 11.9 KB
asynchat.py -rw-r--r-- 11.8 KB
asyncore.py -rw-r--r-- 20.3 KB
base64.py -rwxr-xr-x 13.7 KB
bdb.py -rw-r--r-- 21.4 KB
binhex.py -rw-r--r-- 13.4 KB
bisect.py -rw-r--r-- 2.5 KB
bz2.py -rw-r--r-- 13.9 KB
cProfile.py -rwxr-xr-x 6.2 KB
calendar.py -rw-r--r-- 22.3 KB
cgi.py -rwxr-xr-x 33.9 KB
cgitb.py -rw-r--r-- 11.7 KB
chunk.py -rw-r--r-- 5.3 KB
cmd.py -rw-r--r-- 14.5 KB
code.py -rw-r--r-- 9.3 KB
codecs.py -rw-r--r-- 34.6 KB
codeop.py -rw-r--r-- 5.9 KB
colorsys.py -rw-r--r-- 3.6 KB
compileall.py -rw-r--r-- 9.4 KB
configparser.py -rw-r--r-- 47.9 KB
contextlib.py -rw-r--r-- 8.3 KB
copy.py -rw-r--r-- 8.6 KB
copyreg.py -rw-r--r-- 6.5 KB
crypt.py -rw-r--r-- 1.8 KB
csv.py -rw-r--r-- 15.7 KB
datetime.py -rw-r--r-- 71.9 KB
decimal.py -rw-r--r-- 222.9 KB
difflib.py -rw-r--r-- 80.6 KB
dis.py -rw-r--r-- 9.6 KB
doctest.py -rw-r--r-- 99.4 KB
dummy_threading.py -rw-r--r-- 2.7 KB
filecmp.py -rw-r--r-- 9.4 KB
fileinput.py -rw-r--r-- 14.0 KB
fnmatch.py -rw-r--r-- 3.1 KB
formatter.py -rw-r--r-- 14.6 KB
fractions.py -rw-r--r-- 22.5 KB
ftplib.py -rw-r--r-- 38.3 KB
functools.py -rw-r--r-- 11.9 KB
genericpath.py -rw-r--r-- 3.0 KB
getopt.py -rw-r--r-- 7.3 KB
getpass.py -rw-r--r-- 5.3 KB
gettext.py -rw-r--r-- 17.2 KB
glob.py -rw-r--r-- 2.2 KB
gzip.py -rw-r--r-- 23.0 KB
hashlib.py -rw-r--r-- 5.2 KB
heapq.py -rw-r--r-- 16.7 KB
hmac.py -rw-r--r-- 4.8 KB
imaplib.py -rw-r--r-- 47.4 KB
imghdr.py -rw-r--r-- 3.4 KB
imp.py -rw-r--r-- 9.1 KB
inspect.py -rw-r--r-- 46.6 KB
io.py -rw-r--r-- 3.2 KB
ipaddress.py -rw-r--r-- 70.7 KB
keyword.py -rwxr-xr-x 2.0 KB
linecache.py -rw-r--r-- 3.8 KB
locale.py -rw-r--r-- 88.0 KB
lzma.py -rw-r--r-- 14.1 KB
macpath.py -rw-r--r-- 5.5 KB
macurl2path.py -rw-r--r-- 3.2 KB
mailbox.py -rw-r--r-- 74.3 KB
mailcap.py -rw-r--r-- 7.3 KB
mimetypes.py -rw-r--r-- 20.0 KB
modulefinder.py -rw-r--r-- 23.5 KB
netrc.py -rw-r--r-- 4.4 KB
nntplib.py -rw-r--r-- 41.5 KB
ntpath.py -rw-r--r-- 22.2 KB
nturl2path.py -rw-r--r-- 2.3 KB
numbers.py -rw-r--r-- 10.2 KB
opcode.py -rw-r--r-- 4.9 KB
optparse.py -rw-r--r-- 59.2 KB
os.py -rw-r--r-- 30.0 KB
os2emxpath.py -rw-r--r-- 4.5 KB
pdb.py -rwxr-xr-x 58.8 KB
pickle.py -rw-r--r-- 45.3 KB
pickletools.py -rw-r--r-- 77.3 KB
pipes.py -rw-r--r-- 8.7 KB
pkgutil.py -rw-r--r-- 19.9 KB
platform.py -rwxr-xr-x 48.5 KB
plistlib.py -rw-r--r-- 14.2 KB
poplib.py -rw-r--r-- 10.8 KB
posixpath.py -rw-r--r-- 13.2 KB
pprint.py -rw-r--r-- 12.4 KB
profile.py -rwxr-xr-x 20.9 KB
pstats.py -rw-r--r-- 25.5 KB
pty.py -rw-r--r-- 4.9 KB
py_compile.py -rw-r--r-- 6.5 KB
pyclbr.py -rw-r--r-- 13.1 KB
pydoc.py -rwxr-xr-x 99.5 KB
queue.py -rw-r--r-- 8.6 KB
quopri.py -rwxr-xr-x 7.1 KB
random.py -rw-r--r-- 24.9 KB
re.py -rw-r--r-- 14.2 KB
reprlib.py -rw-r--r-- 5.0 KB
rlcompleter.py -rw-r--r-- 5.4 KB
runpy.py -rw-r--r-- 10.4 KB
sched.py -rw-r--r-- 6.2 KB
shelve.py -rw-r--r-- 8.0 KB
shlex.py -rw-r--r-- 11.2 KB
shutil.py -rw-r--r-- 31.6 KB
site.py -rw-r--r-- 18.7 KB
smtpd.py -rwxr-xr-x 23.8 KB
smtplib.py -rw-r--r-- 36.3 KB
sndhdr.py -rw-r--r-- 6.1 KB
socket.py -rw-r--r-- 14.2 KB
socketserver.py -rw-r--r-- 23.4 KB
sre_compile.py -rw-r--r-- 16.0 KB
sre_constants.py -rw-r--r-- 7.0 KB
sre_parse.py -rw-r--r-- 27.3 KB
ssl.py -rw-r--r-- 22.5 KB
stat.py -rw-r--r-- 4.2 KB
string.py -rw-r--r-- 9.1 KB
stringprep.py -rw-r--r-- 12.6 KB
struct.py -rw-r--r-- 238 bytes
subprocess.py -rw-r--r-- 63.6 KB
sunau.py -rw-r--r-- 16.4 KB
symbol.py -rwxr-xr-x 2.0 KB
symtable.py -rw-r--r-- 7.3 KB
sysconfig.cfg -rw-r--r-- 3.6 KB
sysconfig.py -rw-r--r-- 26.8 KB
tabnanny.py -rwxr-xr-x 11.1 KB
tarfile.py -rw-r--r-- 86.4 KB
telnetlib.py -rw-r--r-- 21.7 KB
tempfile.py -rw-r--r-- 20.8 KB
textwrap.py -rw-r--r-- 15.5 KB
this.py -rw-r--r-- 1003 bytes
threading.py -rw-r--r-- 30.7 KB
timeit.py -rw-r--r-- 12.1 KB
token.py -rwxr-xr-x 3.0 KB
tokenize.py -rw-r--r-- 24.1 KB
trace.py -rw-r--r-- 30.7 KB
traceback.py -rw-r--r-- 11.7 KB
tty.py -rw-r--r-- 879 bytes
turtle.py -rw-r--r-- 139.7 KB
types.py -rw-r--r-- 3.1 KB
uu.py -rwxr-xr-x 6.6 KB
uuid.py -rw-r--r-- 21.2 KB
warnings.py -rw-r--r-- 13.5 KB
wave.py -rw-r--r-- 17.7 KB
weakref.py -rw-r--r-- 11.2 KB
webbrowser.py -rw-r--r-- 21.7 KB
xdrlib.py -rw-r--r-- 5.3 KB
zipfile.py -rw-r--r-- 62.0 KB

back to top