PATH:
usr
/
lib64
/
python2.7
# -*- Mode: Python; tab-width: 4 -*- # Id: asynchat.py,v 2.26 2000/09/07 22:29:26 rushing Exp # Author: Sam Rushing <rushing@nightmare.com> # ====================================================================== # Copyright 1996 by Sam Rushing # # All Rights Reserved # # Permission to use, copy, modify, and distribute this software and # its documentation for any purpose and without fee is hereby # granted, provided that the above copyright notice appear in all # copies and that both that copyright notice and this permission # notice appear in supporting documentation, and that the name of Sam # Rushing not be used in advertising or publicity pertaining to # distribution of the software without specific, written prior # permission. # # SAM RUSHING DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN # NO EVENT SHALL SAM RUSHING BE LIABLE FOR ANY SPECIAL, INDIRECT OR # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS # OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, # NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. # ====================================================================== r"""A class supporting chat-style (command/response) protocols. This class adds support for 'chat' style protocols - where one side sends a 'command', and the other sends a response (examples would be the common internet protocols - smtp, nntp, ftp, etc..). The handle_read() method looks at the input stream for the current 'terminator' (usually '\r\n' for single-line responses, '\r\n.\r\n' for multi-line output), calling self.found_terminator() on its receipt. for example: Say you build an async nntp client using this class. At the start of the connection, you'll have self.terminator set to '\r\n', in order to process the single-line greeting. Just before issuing a 'LIST' command you'll set it to '\r\n.\r\n'. The output of the LIST command will be accumulated (using your own 'collect_incoming_data' method) up to the terminator, and then control will be returned to you - by calling your self.found_terminator() method. """ import socket import asyncore from collections import deque from sys import py3kwarning from warnings import filterwarnings, catch_warnings class async_chat (asyncore.dispatcher): """This is an abstract class. You must derive from this class, and add the two methods collect_incoming_data() and found_terminator()""" # these are overridable defaults ac_in_buffer_size = 4096 ac_out_buffer_size = 4096 def __init__ (self, sock=None, map=None): # for string terminator matching self.ac_in_buffer = '' # we use a list here rather than cStringIO for a few reasons... # del lst[:] is faster than sio.truncate(0) # lst = [] is faster than sio.truncate(0) # cStringIO will be gaining unicode support in py3k, which # will negatively affect the performance of bytes compared to # a ''.join() equivalent self.incoming = [] # we toss the use of the "simple producer" and replace it with # a pure deque, which the original fifo was a wrapping of self.producer_fifo = deque() asyncore.dispatcher.__init__ (self, sock, map) def collect_incoming_data(self, data): raise NotImplementedError("must be implemented in subclass") def _collect_incoming_data(self, data): self.incoming.append(data) def _get_data(self): d = ''.join(self.incoming) del self.incoming[:] return d def found_terminator(self): raise NotImplementedError("must be implemented in subclass") def set_terminator (self, term): "Set the input delimiter. Can be a fixed string of any length, an integer, or None" self.terminator = term def get_terminator (self): return self.terminator # grab some more data from the socket, # throw it to the collector method, # check for the terminator, # if found, transition to the next state. def handle_read (self): try: data = self.recv (self.ac_in_buffer_size) except socket.error, why: self.handle_error() return self.ac_in_buffer = self.ac_in_buffer + data # Continue to search for self.terminator in self.ac_in_buffer, # while calling self.collect_incoming_data. The while loop # is necessary because we might read several data+terminator # combos with a single recv(4096). while self.ac_in_buffer: lb = len(self.ac_in_buffer) terminator = self.get_terminator() if not terminator: # no terminator, collect it all self.collect_incoming_data (self.ac_in_buffer) self.ac_in_buffer = '' elif isinstance(terminator, int) or isinstance(terminator, long): # numeric terminator n = terminator if lb < n: self.collect_incoming_data (self.ac_in_buffer) self.ac_in_buffer = '' self.terminator = self.terminator - lb else: self.collect_incoming_data (self.ac_in_buffer[:n]) self.ac_in_buffer = self.ac_in_buffer[n:] self.terminator = 0 self.found_terminator() else: # 3 cases: # 1) end of buffer matches terminator exactly: # collect data, transition # 2) end of buffer matches some prefix: # collect data to the prefix # 3) end of buffer does not match any prefix: # collect data terminator_len = len(terminator) index = self.ac_in_buffer.find(terminator) if index != -1: # we found the terminator if index > 0: # don't bother reporting the empty string (source of subtle bugs) self.collect_incoming_data (self.ac_in_buffer[:index]) self.ac_in_buffer = self.ac_in_buffer[index+terminator_len:] # This does the Right Thing if the terminator is changed here. self.found_terminator() else: # check for a prefix of the terminator index = find_prefix_at_end (self.ac_in_buffer, terminator) if index: if index != lb: # we found a prefix, collect up to the prefix self.collect_incoming_data (self.ac_in_buffer[:-index]) self.ac_in_buffer = self.ac_in_buffer[-index:] break else: # no prefix, collect it all self.collect_incoming_data (self.ac_in_buffer) self.ac_in_buffer = '' def handle_write (self): self.initiate_send() def handle_close (self): self.close() def push (self, data): sabs = self.ac_out_buffer_size if len(data) > sabs: for i in xrange(0, len(data), sabs): self.producer_fifo.append(data[i:i+sabs]) else: self.producer_fifo.append(data) self.initiate_send() def push_with_producer (self, producer): self.producer_fifo.append(producer) self.initiate_send() def readable (self): "predicate for inclusion in the readable for select()" # cannot use the old predicate, it violates the claim of the # set_terminator method. # return (len(self.ac_in_buffer) <= self.ac_in_buffer_size) return 1 def writable (self): "predicate for inclusion in the writable for select()" return self.producer_fifo or (not self.connected) def close_when_done (self): "automatically close this channel once the outgoing queue is empty" self.producer_fifo.append(None) def initiate_send(self): while self.producer_fifo and self.connected: first = self.producer_fifo[0] # handle empty string/buffer or None entry if not first: del self.producer_fifo[0] if first is None: self.handle_close() return # handle classic producer behavior obs = self.ac_out_buffer_size try: with catch_warnings(): if py3kwarning: filterwarnings("ignore", ".*buffer", DeprecationWarning) data = buffer(first, 0, obs) except TypeError: data = first.more() if data: self.producer_fifo.appendleft(data) else: del self.producer_fifo[0] continue # send the data try: num_sent = self.send(data) except socket.error: self.handle_error() return if num_sent: if num_sent < len(data) or obs < len(first): self.producer_fifo[0] = first[num_sent:] else: del self.producer_fifo[0] # we tried to send some actual data return def discard_buffers (self): # Emergencies only! self.ac_in_buffer = '' del self.incoming[:] self.producer_fifo.clear() class simple_producer: def __init__ (self, data, buffer_size=512): self.data = data self.buffer_size = buffer_size def more (self): if len (self.data) > self.buffer_size: result = self.data[:self.buffer_size] self.data = self.data[self.buffer_size:] return result else: result = self.data self.data = '' return result class fifo: def __init__ (self, list=None): if not list: self.list = deque() else: self.list = deque(list) def __len__ (self): return len(self.list) def is_empty (self): return not self.list def first (self): return self.list[0] def push (self, data): self.list.append(data) def pop (self): if self.list: return (1, self.list.popleft()) else: return (0, None) # Given 'haystack', see if any prefix of 'needle' is at its end. This # assumes an exact match has already been checked. Return the number of # characters matched. # for example: # f_p_a_e ("qwerty\r", "\r\n") => 1 # f_p_a_e ("qwertydkjf", "\r\n") => 0 # f_p_a_e ("qwerty\r\n", "\r\n") => <undefined> # this could maybe be made faster with a computed regex? # [answer: no; circa Python-2.0, Jan 2001] # new python: 28961/s # old python: 18307/s # re: 12820/s # regex: 14035/s def find_prefix_at_end (haystack, needle): l = len(needle) - 1 while l and not haystack.endswith(needle[:l]): l -= 1 return l
[+]
..
[-] __phello__.foo.py
[edit]
[-] this.pyo
[edit]
[-] md5.pyc
[edit]
[-] contextlib.pyc
[edit]
[-] zipfile.py
[edit]
[-] stringold.pyc
[edit]
[-] UserList.pyc
[edit]
[-] audiodev.pyo
[edit]
[-] shlex.pyc
[edit]
[-] new.pyo
[edit]
[-] asyncore.pyc
[edit]
[-] SimpleXMLRPCServer.pyc
[edit]
[-] tabnanny.py
[edit]
[-] mailcap.pyo
[edit]
[-] collections.pyo
[edit]
[-] cmd.py
[edit]
[-] ihooks.pyc
[edit]
[-] cProfile.py
[edit]
[-] sunau.pyc
[edit]
[-] commands.pyo
[edit]
[-] tempfile.py
[edit]
[-] ast.pyo
[edit]
[-] sre.pyc
[edit]
[-] __phello__.foo.pyo
[edit]
[-] rfc822.py
[edit]
[-] argparse.py
[edit]
[-] keyword.pyc
[edit]
[-] tty.pyo
[edit]
[-] pickletools.pyo
[edit]
[-] mimetools.py
[edit]
[-] platform.py
[edit]
[-] platform.pyc
[edit]
[-] difflib.pyc
[edit]
[-] weakref.pyo
[edit]
[-] wsgiref.egg-info
[edit]
[-] xmllib.pyo
[edit]
[-] fpformat.pyc
[edit]
[-] imghdr.pyo
[edit]
[-] binhex.py
[edit]
[-] antigravity.py
[edit]
[-] sysconfig.pyc
[edit]
[+]
curses
[-] commands.py
[edit]
[-] chunk.pyo
[edit]
[-] sre_compile.pyc
[edit]
[-] ssl.pyc
[edit]
[-] random.pyc
[edit]
[-] ConfigParser.py
[edit]
[-] xdrlib.pyc
[edit]
[-] inspect.py
[edit]
[-] linecache.pyo
[edit]
[-] sunaudio.py
[edit]
[-] repr.py
[edit]
[-] stringold.py
[edit]
[-] _sysconfigdata.pyo
[edit]
[-] sunau.py
[edit]
[-] threading.pyc
[edit]
[-] os.pyc
[edit]
[-] HTMLParser.pyc
[edit]
[-] ihooks.py
[edit]
[-] imghdr.py
[edit]
[-] sha.pyc
[edit]
[-] textwrap.pyc
[edit]
[-] Queue.py
[edit]
[-] _osx_support.pyo
[edit]
[-] random.py
[edit]
[+]
hotshot
[-] macpath.py
[edit]
[-] compileall.pyo
[edit]
[-] weakref.pyc
[edit]
[-] hmac.py
[edit]
[-] heapq.pyc
[edit]
[-] base64.py
[edit]
[-] doctest.pyc
[edit]
[-] sre_constants.pyc
[edit]
[-] copy_reg.py
[edit]
[-] _sysconfigdata.py
[edit]
[-] cgitb.py
[edit]
[-] dumbdbm.pyc
[edit]
[-] binhex.pyo
[edit]
[-] statvfs.py
[edit]
[-] _abcoll.pyc
[edit]
[-] rexec.pyc
[edit]
[-] stringprep.py
[edit]
[-] nturl2path.pyo
[edit]
[-] urllib2.py
[edit]
[+]
Tools
[-] mimetools.pyc
[edit]
[-] StringIO.py
[edit]
[-] ast.py
[edit]
[-] trace.pyo
[edit]
[-] warnings.pyc
[edit]
[-] sre.pyo
[edit]
[-] py_compile.pyo
[edit]
[-] textwrap.py
[edit]
[-] _pyio.pyc
[edit]
[-] glob.pyc
[edit]
[-] UserList.py
[edit]
[-] statvfs.pyc
[edit]
[-] runpy.pyo
[edit]
[-] dis.py
[edit]
[-] chunk.py
[edit]
[-] this.py
[edit]
[-] py_compile.py
[edit]
[-] _threading_local.pyc
[edit]
[-] shelve.pyc
[edit]
[-] fnmatch.py
[edit]
[-] pstats.pyo
[edit]
[-] colorsys.pyo
[edit]
[-] robotparser.pyo
[edit]
[-] popen2.pyo
[edit]
[-] xmllib.py
[edit]
[-] dbhash.py
[edit]
[-] SocketServer.py
[edit]
[-] plistlib.pyo
[edit]
[-] robotparser.py
[edit]
[-] zipfile.pyo
[edit]
[-] py_compile.pyc
[edit]
[-] keyword.pyo
[edit]
[-] HTMLParser.py
[edit]
[-] sets.py
[edit]
[-] httplib.py
[edit]
[+]
xml
[-] netrc.pyc
[edit]
[-] posixpath.pyo
[edit]
[-] opcode.py
[edit]
[+]
Doc
[-] BaseHTTPServer.pyc
[edit]
[-] dbhash.pyc
[edit]
[-] mimetypes.pyo
[edit]
[+]
site-packages
[-] cProfile.pyc
[edit]
[-] smtplib.pyc
[edit]
[+]
bsddb
[-] pydoc.pyc
[edit]
[-] mutex.pyo
[edit]
[-] sre_compile.py
[edit]
[-] commands.pyc
[edit]
[-] posixfile.pyo
[edit]
[-] pipes.pyo
[edit]
[-] _pyio.py
[edit]
[-] cgi.pyo
[edit]
[-] mhlib.pyo
[edit]
[-] site.pyo
[edit]
[-] base64.pyc
[edit]
[-] pty.py
[edit]
[-] macurl2path.py
[edit]
[-] _abcoll.py
[edit]
[-] tempfile.pyo
[edit]
[-] atexit.pyo
[edit]
[-] _sysconfigdata.pyc
[edit]
[-] rexec.pyo
[edit]
[-] numbers.pyo
[edit]
[-] anydbm.pyc
[edit]
[+]
lib2to3
[-] statvfs.pyo
[edit]
[+]
wsgiref
[+]
lib-tk
[-] heapq.py
[edit]
[-] keyword.py
[edit]
[-] antigravity.pyo
[edit]
[-] codecs.py
[edit]
[-] shlex.pyo
[edit]
[-] quopri.pyo
[edit]
[-] base64.pyo
[edit]
[-] HTMLParser.pyo
[edit]
[-] mimify.pyc
[edit]
[-] stat.pyc
[edit]
[-] pickletools.py
[edit]
[-] compileall.py
[edit]
[-] pickle.pyc
[edit]
[-] cookielib.pyc
[edit]
[-] nturl2path.py
[edit]
[-] urllib.py
[edit]
[+]
idlelib
[-] warnings.py
[edit]
[-] shutil.py
[edit]
[-] mailbox.pyc
[edit]
[-] socket.py
[edit]
[-] pdb.doc
[edit]
[-] pdb.py
[edit]
[-] toaiff.pyo
[edit]
[-] io.pyo
[edit]
[-] timeit.pyo
[edit]
[-] pdb.pyc
[edit]
[-] types.pyc
[edit]
[-] pyclbr.pyc
[edit]
[-] popen2.py
[edit]
[-] doctest.pyo
[edit]
[-] pprint.pyc
[edit]
[-] macurl2path.pyo
[edit]
[-] formatter.py
[edit]
[-] xmllib.pyc
[edit]
[-] hashlib.pyo
[edit]
[-] traceback.pyo
[edit]
[-] types.py
[edit]
[-] locale.pyc
[edit]
[-] runpy.py
[edit]
[-] Cookie.py
[edit]
[-] xmlrpclib.pyc
[edit]
[-] DocXMLRPCServer.pyo
[edit]
[-] ConfigParser.pyo
[edit]
[-] stringprep.pyo
[edit]
[-] _strptime.pyo
[edit]
[-] shutil.pyo
[edit]
[-] uu.py
[edit]
[-] telnetlib.pyo
[edit]
[-] macpath.pyc
[edit]
[-] sndhdr.pyo
[edit]
[-] sets.pyo
[edit]
[-] tempfile.pyc
[edit]
[-] htmlentitydefs.py
[edit]
[-] macpath.pyo
[edit]
[-] _threading_local.py
[edit]
[-] getpass.pyo
[edit]
[-] difflib.pyo
[edit]
[-] mailcap.py
[edit]
[-] heapq.pyo
[edit]
[-] os2emxpath.py
[edit]
[-] textwrap.pyo
[edit]
[-] sysconfig.pyo
[edit]
[-] rfc822.pyo
[edit]
[-] optparse.pyo
[edit]
[-] sndhdr.pyc
[edit]
[-] genericpath.pyc
[edit]
[-] atexit.pyc
[edit]
[-] inspect.pyc
[edit]
[-] tty.pyc
[edit]
[-] chunk.pyc
[edit]
[-] md5.pyo
[edit]
[-] getpass.pyc
[edit]
[-] bdb.pyo
[edit]
[-] DocXMLRPCServer.py
[edit]
[-] SimpleHTTPServer.pyo
[edit]
[-] mhlib.pyc
[edit]
[-] _LWPCookieJar.pyc
[edit]
[-] imaplib.pyo
[edit]
[-] codeop.pyo
[edit]
[-] pkgutil.pyc
[edit]
[-] bisect.py
[edit]
[-] linecache.py
[edit]
[-] aifc.pyo
[edit]
[-] calendar.pyc
[edit]
[-] contextlib.pyo
[edit]
[-] warnings.pyo
[edit]
[-] _weakrefset.pyo
[edit]
[-] genericpath.pyo
[edit]
[-] colorsys.py
[edit]
[-] UserDict.pyc
[edit]
[-] subprocess.pyo
[edit]
[-] aifc.pyc
[edit]
[-] anydbm.pyo
[edit]
[-] multifile.pyo
[edit]
[-] modulefinder.pyc
[edit]
[-] tokenize.pyc
[edit]
[-] mutex.py
[edit]
[-] urllib.pyo
[edit]
[-] glob.py
[edit]
[+]
plat-linux2
[-] mailcap.pyc
[edit]
[-] mimetypes.pyc
[edit]
[-] sndhdr.py
[edit]
[-] functools.pyc
[edit]
[-] cProfile.pyo
[edit]
[-] abc.pyo
[edit]
[-] ssl.py
[edit]
[-] dis.pyc
[edit]
[-] collections.py
[edit]
[-] _strptime.py
[edit]
[-] rlcompleter.pyc
[edit]
[-] _LWPCookieJar.pyo
[edit]
[-] fpformat.pyo
[edit]
[-] sre_compile.pyo
[edit]
[-] csv.pyo
[edit]
[-] trace.pyc
[edit]
[-] wave.pyo
[edit]
[-] asynchat.pyc
[edit]
[-] code.pyc
[edit]
[-] Bastion.pyo
[edit]
[-] modulefinder.pyo
[edit]
[-] contextlib.py
[edit]
[-] argparse.pyo
[edit]
[-] user.py
[edit]
[-] filecmp.py
[edit]
[-] rfc822.pyc
[edit]
[-] sunaudio.pyo
[edit]
[-] decimal.pyc
[edit]
[+]
logging
[-] sre_parse.pyc
[edit]
[-] _weakrefset.pyc
[edit]
[-] posixpath.pyc
[edit]
[-] gzip.pyc
[edit]
[-] new.pyc
[edit]
[-] code.pyo
[edit]
[-] getopt.pyc
[edit]
[-] copy.pyo
[edit]
[-] filecmp.pyc
[edit]
[-] socket.pyc
[edit]
[-] dircache.pyo
[edit]
[-] xdrlib.pyo
[edit]
[-] platform.pyo
[edit]
[-] pyclbr.pyo
[edit]
[-] token.py
[edit]
[-] pipes.pyc
[edit]
[-] gzip.py
[edit]
[-] copy.pyc
[edit]
[-] string.py
[edit]
[-] toaiff.pyc
[edit]
[-] genericpath.py
[edit]
[-] _osx_support.pyc
[edit]
[-] _osx_support.py
[edit]
[-] sre_parse.pyo
[edit]
[-] pickletools.pyc
[edit]
[-] stat.py
[edit]
[-] Bastion.pyc
[edit]
[-] mimify.pyo
[edit]
[-] __future__.py
[edit]
[+]
distutils
[-] dummy_threading.py
[edit]
[-] webbrowser.py
[edit]
[-] Queue.pyo
[edit]
[-] dircache.py
[edit]
[-] posixfile.pyc
[edit]
[-] os2emxpath.pyc
[edit]
[-] symtable.py
[edit]
[+]
lib-dynload
[-] getopt.py
[edit]
[-] antigravity.pyc
[edit]
[-] _threading_local.pyo
[edit]
[-] dumbdbm.pyo
[edit]
[-] wave.py
[edit]
[-] urllib.pyc
[edit]
[-] codeop.py
[edit]
[-] httplib.pyc
[edit]
[-] abc.py
[edit]
[-] whichdb.py
[edit]
[-] socket.pyo
[edit]
[-] uu.pyo
[edit]
[+]
pydoc_data
[-] formatter.pyc
[edit]
[-] copy_reg.pyo
[edit]
[-] toaiff.py
[edit]
[-] site.pyc
[edit]
[-] profile.pyc
[edit]
[-] markupbase.pyc
[edit]
[-] SocketServer.pyo
[edit]
[-] codecs.pyc
[edit]
[-] httplib.pyo
[edit]
[-] telnetlib.py
[edit]
[-] _MozillaCookieJar.pyc
[edit]
[-] __future__.pyc
[edit]
[+]
unittest
[-] fileinput.py
[edit]
[-] ihooks.pyo
[edit]
[-] atexit.py
[edit]
[-] Bastion.py
[edit]
[-] ftplib.py
[edit]
[+]
ctypes
[-] sched.pyc
[edit]
[-] SimpleHTTPServer.py
[edit]
[-] pipes.py
[edit]
[-] pydoc.pyo
[edit]
[-] posixfile.py
[edit]
[-] ntpath.pyo
[edit]
[-] aifc.py
[edit]
[-] Queue.pyc
[edit]
[-] pickle.pyo
[edit]
[-] binhex.pyc
[edit]
[-] shelve.pyo
[edit]
[-] pprint.py
[edit]
[-] asynchat.pyo
[edit]
[-] os.pyo
[edit]
[-] hashlib.pyc
[edit]
[-] io.pyc
[edit]
[-] imghdr.pyc
[edit]
[-] difflib.py
[edit]
[-] filecmp.pyo
[edit]
[-] uuid.py
[edit]
[-] optparse.pyc
[edit]
[-] cgitb.pyc
[edit]
[-] threading.py
[edit]
[-] plistlib.pyc
[edit]
[-] robotparser.pyc
[edit]
[-] urllib2.pyc
[edit]
[-] dbhash.pyo
[edit]
[-] shutil.pyc
[edit]
[-] multifile.pyc
[edit]
[-] sre_parse.py
[edit]
[-] netrc.pyo
[edit]
[-] htmllib.pyo
[edit]
[-] whichdb.pyc
[edit]
[-] subprocess.py
[edit]
[-] pdb.pyo
[edit]
[+]
importlib
[-] bisect.pyc
[edit]
[-] getpass.py
[edit]
[-] fractions.pyo
[edit]
[-] dummy_threading.pyc
[edit]
[-] gettext.pyc
[edit]
[-] trace.py
[edit]
[-] struct.py
[edit]
[-] imputil.pyc
[edit]
[-] locale.pyo
[edit]
[-] SocketServer.pyc
[edit]
[-] token.pyc
[edit]
[-] mimify.py
[edit]
[-] uu.pyc
[edit]
[-] dis.pyo
[edit]
[-] crypt.pyo
[edit]
[-] repr.pyc
[edit]
[-] smtpd.pyc
[edit]
[-] rexec.py
[edit]
[-] plistlib.py
[edit]
[-] mhlib.py
[edit]
[-] traceback.pyc
[edit]
[-] SimpleXMLRPCServer.py
[edit]
[-] StringIO.pyo
[edit]
[-] CGIHTTPServer.pyo
[edit]
[-] string.pyc
[edit]
[-] crypt.pyc
[edit]
[-] asynchat.py
[edit]
[-] dummy_threading.pyo
[edit]
[-] fractions.py
[edit]
[-] shlex.py
[edit]
[-] _MozillaCookieJar.pyo
[edit]
[-] opcode.pyo
[edit]
[-] stringold.pyo
[edit]
[-] ftplib.pyo
[edit]
[-] fnmatch.pyo
[edit]
[+]
compiler
[-] bdb.py
[edit]
[-] repr.pyo
[edit]
[-] locale.py
[edit]
[-] calendar.py
[edit]
[-] _LWPCookieJar.py
[edit]
[-] poplib.py
[edit]
[-] codecs.pyo
[edit]
[-] posixpath.py
[edit]
[-] cookielib.pyo
[edit]
[-] user.pyo
[edit]
[-] imaplib.py
[edit]
[-] SimpleHTTPServer.pyc
[edit]
[+]
config
[-] imputil.py
[edit]
[-] symbol.pyc
[edit]
[-] tarfile.pyo
[edit]
[-] UserString.pyo
[edit]
[-] cmd.pyo
[edit]
[-] _abcoll.pyo
[edit]
[-] pickle.py
[edit]
[-] symtable.pyc
[edit]
[-] timeit.py
[edit]
[-] SimpleXMLRPCServer.pyo
[edit]
[-] tabnanny.pyo
[edit]
[-] urllib2.pyo
[edit]
[-] symtable.pyo
[edit]
[-] MimeWriter.pyc
[edit]
[+]
json
[-] string.pyo
[edit]
[-] imaplib.pyc
[edit]
[-] traceback.py
[edit]
[-] nntplib.pyc
[edit]
[-] random.pyo
[edit]
[+]
multiprocessing
[-] collections.pyc
[edit]
[-] shelve.py
[edit]
[-] rlcompleter.pyo
[edit]
[-] sha.py
[edit]
[-] __phello__.foo.pyc
[edit]
[-] timeit.pyc
[edit]
[-] dummy_thread.py
[edit]
[-] inspect.pyo
[edit]
[-] pprint.pyo
[edit]
[-] csv.py
[edit]
[-] htmllib.py
[edit]
[-] tarfile.py
[edit]
[-] sgmllib.py
[edit]
[-] numbers.py
[edit]
[-] glob.pyo
[edit]
[-] formatter.pyo
[edit]
[-] uuid.pyo
[edit]
[-] optparse.py
[edit]
[-] decimal.pyo
[edit]
[-] cgi.py
[edit]
[-] getopt.pyo
[edit]
[-] pstats.py
[edit]
[-] dumbdbm.py
[edit]
[-] colorsys.pyc
[edit]
[-] md5.py
[edit]
[-] profile.pyo
[edit]
[-] ssl.pyo
[edit]
[-] quopri.pyc
[edit]
[-] crypt.py
[edit]
[-] fileinput.pyo
[edit]
[-] htmlentitydefs.pyc
[edit]
[-] urlparse.py
[edit]
[-] site.py
[edit]
[-] pkgutil.py
[edit]
[-] re.py
[edit]
[-] nturl2path.pyc
[edit]
[-] pyclbr.py
[edit]
[-] markupbase.pyo
[edit]
[-] pydoc.py
[edit]
[-] markupbase.py
[edit]
[-] fpformat.py
[edit]
[-] mutex.pyc
[edit]
[-] sre_constants.py
[edit]
[-] uuid.pyc
[edit]
[-] webbrowser.pyc
[edit]
[-] dircache.pyc
[edit]
[-] xdrlib.py
[edit]
[-] mailbox.pyo
[edit]
[-] abc.pyc
[edit]
[-] nntplib.py
[edit]
[-] gzip.pyo
[edit]
[-] sre.py
[edit]
[-] fileinput.pyc
[edit]
[-] ftplib.pyc
[edit]
[-] macurl2path.pyc
[edit]
[-] mimetypes.py
[edit]
[-] linecache.pyc
[edit]
[-] hmac.pyc
[edit]
[-] anydbm.py
[edit]
[-] _MozillaCookieJar.py
[edit]
[-] _pyio.pyo
[edit]
[-] stat.pyo
[edit]
[-] urlparse.pyc
[edit]
[-] fnmatch.pyc
[edit]
[+]
email
[-] poplib.pyc
[edit]
[-] UserString.py
[edit]
[-] wave.pyc
[edit]
[-] quopri.py
[edit]
[-] tarfile.pyc
[edit]
[-] sha.pyo
[edit]
[-] doctest.py
[edit]
[-] re.pyo
[edit]
[-] cgitb.pyo
[edit]
[-] __future__.pyo
[edit]
[-] asyncore.pyo
[edit]
[-] codeop.pyc
[edit]
[-] audiodev.pyc
[edit]
[-] zipfile.pyc
[edit]
[-] copy_reg.pyc
[edit]
[-] sunau.pyo
[edit]
[-] profile.py
[edit]
[-] gettext.pyo
[edit]
[-] smtpd.pyo
[edit]
[-] BaseHTTPServer.pyo
[edit]
[-] pty.pyc
[edit]
[-] sched.py
[edit]
[-] hashlib.py
[edit]
[-] symbol.pyo
[edit]
[-] sets.pyc
[edit]
[-] Cookie.pyo
[edit]
[-] telnetlib.pyc
[edit]
[-] numbers.pyc
[edit]
[-] opcode.pyc
[edit]
[-] functools.py
[edit]
[-] smtplib.py
[edit]
[-] copy.py
[edit]
[-] pty.pyo
[edit]
[-] tty.py
[edit]
[-] new.py
[edit]
[-] token.pyo
[edit]
[-] subprocess.pyc
[edit]
[-] os.py
[edit]
[-] cmd.pyc
[edit]
[-] sgmllib.pyo
[edit]
[-] UserDict.py
[edit]
[-] sre_constants.pyo
[edit]
[-] tabnanny.pyc
[edit]
[-] webbrowser.pyo
[edit]
[-] this.pyc
[edit]
[-] xmlrpclib.py
[edit]
[-] _weakrefset.py
[edit]
[-] netrc.py
[edit]
[-] UserDict.pyo
[edit]
[-] user.pyc
[edit]
[-] xmlrpclib.pyo
[edit]
[-] struct.pyo
[edit]
[-] code.py
[edit]
[-] asyncore.py
[edit]
[-] cgi.pyc
[edit]
[-] tokenize.py
[edit]
[-] argparse.pyc
[edit]
[-] runpy.pyc
[edit]
[-] types.pyo
[edit]
[-] pstats.pyc
[edit]
[-] sched.pyo
[edit]
[-] mimetools.pyo
[edit]
[+]
encodings
[-] struct.pyc
[edit]
[-] multifile.py
[edit]
[-] io.py
[edit]
[-] smtpd.py
[edit]
[-] Cookie.pyc
[edit]
[-] sysconfig.py
[edit]
[-] compileall.pyc
[edit]
[-] BaseHTTPServer.py
[edit]
[+]
Demo
[-] bdb.pyc
[edit]
[-] decimal.py
[edit]
[-] csv.pyc
[edit]
[-] calendar.pyo
[edit]
[-] functools.pyo
[edit]
[-] sgmllib.pyc
[edit]
[-] stringprep.pyc
[edit]
[+]
sqlite3
[-] tokenize.pyo
[edit]
[-] rlcompleter.py
[edit]
[-] CGIHTTPServer.py
[edit]
[-] urlparse.pyo
[edit]
[-] htmllib.pyc
[edit]
[-] dummy_thread.pyc
[edit]
[-] whichdb.pyo
[edit]
[-] bisect.pyo
[edit]
[-] UserList.pyo
[edit]
[-] popen2.pyc
[edit]
[-] StringIO.pyc
[edit]
[-] imputil.pyo
[edit]
[-] ntpath.py
[edit]
[+]
test
[-] DocXMLRPCServer.pyc
[edit]
[-] UserString.pyc
[edit]
[-] weakref.py
[edit]
[-] poplib.pyo
[edit]
[-] fractions.pyc
[edit]
[-] ConfigParser.pyc
[edit]
[-] symbol.py
[edit]
[-] modulefinder.py
[edit]
[-] ast.pyc
[edit]
[-] audiodev.py
[edit]
[-] nntplib.pyo
[edit]
[-] hmac.pyo
[edit]
[-] htmlentitydefs.pyo
[edit]
[-] cookielib.py
[edit]
[-] os2emxpath.pyo
[edit]
[-] _strptime.pyc
[edit]
[-] re.pyc
[edit]
[-] sunaudio.pyc
[edit]
[-] MimeWriter.py
[edit]
[-] threading.pyo
[edit]
[-] dummy_thread.pyo
[edit]
[-] gettext.py
[edit]
[-] CGIHTTPServer.pyc
[edit]
[-] smtplib.pyo
[edit]
[-] pkgutil.pyo
[edit]
[-] MimeWriter.pyo
[edit]
[-] ntpath.pyc
[edit]
[-] mailbox.py
[edit]