__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
"""MH interface -- purely object-oriented (well, almost)
Executive summary:
import mhlib
mh = mhlib.MH() # use default mailbox directory and profile
mh = mhlib.MH(mailbox) # override mailbox location (default from profile)
mh = mhlib.MH(mailbox, profile) # override mailbox and profile
mh.error(format, ...) # print error message -- can be overridden
s = mh.getprofile(key) # profile entry (None if not set)
path = mh.getpath() # mailbox pathname
name = mh.getcontext() # name of current folder
mh.setcontext(name) # set name of current folder
list = mh.listfolders() # names of top-level folders
list = mh.listallfolders() # names of all folders, including subfolders
list = mh.listsubfolders(name) # direct subfolders of given folder
list = mh.listallsubfolders(name) # all subfolders of given folder
mh.makefolder(name) # create new folder
mh.deletefolder(name) # delete folder -- must have no subfolders
f = mh.openfolder(name) # new open folder object
f.error(format, ...) # same as mh.error(format, ...)
path = f.getfullname() # folder's full pathname
path = f.getsequencesfilename() # full pathname of folder's sequences file
path = f.getmessagefilename(n) # full pathname of message n in folder
list = f.listmessages() # list of messages in folder (as numbers)
n = f.getcurrent() # get current message
f.setcurrent(n) # set current message
list = f.parsesequence(seq) # parse msgs syntax into list of messages
n = f.getlast() # get last message (0 if no messagse)
f.setlast(n) # set last message (internal use only)
dict = f.getsequences() # dictionary of sequences in folder {name: list}
f.putsequences(dict) # write sequences back to folder
f.createmessage(n, fp) # add message from file f as number n
f.removemessages(list) # remove messages in list from folder
f.refilemessages(list, tofolder) # move messages in list to other folder
f.movemessage(n, tofolder, ton) # move one message to a given destination
f.copymessage(n, tofolder, ton) # copy one message to a given destination
m = f.openmessage(n) # new open message object (costs a file descriptor)
m is a derived class of mimetools.Message(rfc822.Message), with:
s = m.getheadertext() # text of message's headers
s = m.getheadertext(pred) # text of message's headers, filtered by pred
s = m.getbodytext() # text of message's body, decoded
s = m.getbodytext(0) # text of message's body, not decoded
"""
from warnings import warnpy3k
warnpy3k("the mhlib module has been removed in Python 3.0; use the mailbox "
"module instead", stacklevel=2)
del warnpy3k
# XXX To do, functionality:
# - annotate messages
# - send messages
#
# XXX To do, organization:
# - move IntSet to separate file
# - move most Message functionality to module mimetools
# Customizable defaults
MH_PROFILE = '~/.mh_profile'
PATH = '~/Mail'
MH_SEQUENCES = '.mh_sequences'
FOLDER_PROTECT = 0700
# Imported modules
import os
import sys
import re
import mimetools
import multifile
import shutil
from bisect import bisect
__all__ = ["MH","Error","Folder","Message"]
# Exported constants
class Error(Exception):
pass
class MH:
"""Class representing a particular collection of folders.
Optional constructor arguments are the pathname for the directory
containing the collection, and the MH profile to use.
If either is omitted or empty a default is used; the default
directory is taken from the MH profile if it is specified there."""
def __init__(self, path = None, profile = None):
"""Constructor."""
if profile is None: profile = MH_PROFILE
self.profile = os.path.expanduser(profile)
if path is None: path = self.getprofile('Path')
if not path: path = PATH
if not os.path.isabs(path) and path[0] != '~':
path = os.path.join('~', path)
path = os.path.expanduser(path)
if not os.path.isdir(path): raise Error, 'MH() path not found'
self.path = path
def __repr__(self):
"""String representation."""
return 'MH(%r, %r)' % (self.path, self.profile)
def error(self, msg, *args):
"""Routine to print an error. May be overridden by a derived class."""
sys.stderr.write('MH error: %s\n' % (msg % args))
def getprofile(self, key):
"""Return a profile entry, None if not found."""
return pickline(self.profile, key)
def getpath(self):
"""Return the path (the name of the collection's directory)."""
return self.path
def getcontext(self):
"""Return the name of the current folder."""
context = pickline(os.path.join(self.getpath(), 'context'),
'Current-Folder')
if not context: context = 'inbox'
return context
def setcontext(self, context):
"""Set the name of the current folder."""
fn = os.path.join(self.getpath(), 'context')
f = open(fn, "w")
f.write("Current-Folder: %s\n" % context)
f.close()
def listfolders(self):
"""Return the names of the top-level folders."""
folders = []
path = self.getpath()
for name in os.listdir(path):
fullname = os.path.join(path, name)
if os.path.isdir(fullname):
folders.append(name)
folders.sort()
return folders
def listsubfolders(self, name):
"""Return the names of the subfolders in a given folder
(prefixed with the given folder name)."""
fullname = os.path.join(self.path, name)
# Get the link count so we can avoid listing folders
# that have no subfolders.
nlinks = os.stat(fullname).st_nlink
if nlinks <= 2:
return []
subfolders = []
subnames = os.listdir(fullname)
for subname in subnames:
fullsubname = os.path.join(fullname, subname)
if os.path.isdir(fullsubname):
name_subname = os.path.join(name, subname)
subfolders.append(name_subname)
# Stop looking for subfolders when
# we've seen them all
nlinks = nlinks - 1
if nlinks <= 2:
break
subfolders.sort()
return subfolders
def listallfolders(self):
"""Return the names of all folders and subfolders, recursively."""
return self.listallsubfolders('')
def listallsubfolders(self, name):
"""Return the names of subfolders in a given folder, recursively."""
fullname = os.path.join(self.path, name)
# Get the link count so we can avoid listing folders
# that have no subfolders.
nlinks = os.stat(fullname).st_nlink
if nlinks <= 2:
return []
subfolders = []
subnames = os.listdir(fullname)
for subname in subnames:
if subname[0] == ',' or isnumeric(subname): continue
fullsubname = os.path.join(fullname, subname)
if os.path.isdir(fullsubname):
name_subname = os.path.join(name, subname)
subfolders.append(name_subname)
if not os.path.islink(fullsubname):
subsubfolders = self.listallsubfolders(
name_subname)
subfolders = subfolders + subsubfolders
# Stop looking for subfolders when
# we've seen them all
nlinks = nlinks - 1
if nlinks <= 2:
break
subfolders.sort()
return subfolders
def openfolder(self, name):
"""Return a new Folder object for the named folder."""
return Folder(self, name)
def makefolder(self, name):
"""Create a new folder (or raise os.error if it cannot be created)."""
protect = pickline(self.profile, 'Folder-Protect')
if protect and isnumeric(protect):
mode = int(protect, 8)
else:
mode = FOLDER_PROTECT
os.mkdir(os.path.join(self.getpath(), name), mode)
def deletefolder(self, name):
"""Delete a folder. This removes files in the folder but not
subdirectories. Raise os.error if deleting the folder itself fails."""
fullname = os.path.join(self.getpath(), name)
for subname in os.listdir(fullname):
fullsubname = os.path.join(fullname, subname)
try:
os.unlink(fullsubname)
except os.error:
self.error('%s not deleted, continuing...' %
fullsubname)
os.rmdir(fullname)
numericprog = re.compile('^[1-9][0-9]*$')
def isnumeric(str):
return numericprog.match(str) is not None
class Folder:
"""Class representing a particular folder."""
def __init__(self, mh, name):
"""Constructor."""
self.mh = mh
self.name = name
if not os.path.isdir(self.getfullname()):
raise Error, 'no folder %s' % name
def __repr__(self):
"""String representation."""
return 'Folder(%r, %r)' % (self.mh, self.name)
def error(self, *args):
"""Error message handler."""
self.mh.error(*args)
def getfullname(self):
"""Return the full pathname of the folder."""
return os.path.join(self.mh.path, self.name)
def getsequencesfilename(self):
"""Return the full pathname of the folder's sequences file."""
return os.path.join(self.getfullname(), MH_SEQUENCES)
def getmessagefilename(self, n):
"""Return the full pathname of a message in the folder."""
return os.path.join(self.getfullname(), str(n))
def listsubfolders(self):
"""Return list of direct subfolders."""
return self.mh.listsubfolders(self.name)
def listallsubfolders(self):
"""Return list of all subfolders."""
return self.mh.listallsubfolders(self.name)
def listmessages(self):
"""Return the list of messages currently present in the folder.
As a side effect, set self.last to the last message (or 0)."""
messages = []
match = numericprog.match
append = messages.append
for name in os.listdir(self.getfullname()):
if match(name):
append(name)
messages = map(int, messages)
messages.sort()
if messages:
self.last = messages[-1]
else:
self.last = 0
return messages
def getsequences(self):
"""Return the set of sequences for the folder."""
sequences = {}
fullname = self.getsequencesfilename()
try:
f = open(fullname, 'r')
except IOError:
return sequences
while 1:
line = f.readline()
if not line: break
fields = line.split(':')
if len(fields) != 2:
self.error('bad sequence in %s: %s' %
(fullname, line.strip()))
key = fields[0].strip()
value = IntSet(fields[1].strip(), ' ').tolist()
sequences[key] = value
return sequences
def putsequences(self, sequences):
"""Write the set of sequences back to the folder."""
fullname = self.getsequencesfilename()
f = None
for key, seq in sequences.iteritems():
s = IntSet('', ' ')
s.fromlist(seq)
if not f: f = open(fullname, 'w')
f.write('%s: %s\n' % (key, s.tostring()))
if not f:
try:
os.unlink(fullname)
except os.error:
pass
else:
f.close()
def getcurrent(self):
"""Return the current message. Raise Error when there is none."""
seqs = self.getsequences()
try:
return max(seqs['cur'])
except (ValueError, KeyError):
raise Error, "no cur message"
def setcurrent(self, n):
"""Set the current message."""
updateline(self.getsequencesfilename(), 'cur', str(n), 0)
def parsesequence(self, seq):
"""Parse an MH sequence specification into a message list.
Attempt to mimic mh-sequence(5) as close as possible.
Also attempt to mimic observed behavior regarding which
conditions cause which error messages."""
# XXX Still not complete (see mh-format(5)).
# Missing are:
# - 'prev', 'next' as count
# - Sequence-Negation option
all = self.listmessages()
# Observed behavior: test for empty folder is done first
if not all:
raise Error, "no messages in %s" % self.name
# Common case first: all is frequently the default
if seq == 'all':
return all
# Test for X:Y before X-Y because 'seq:-n' matches both
i = seq.find(':')
if i >= 0:
head, dir, tail = seq[:i], '', seq[i+1:]
if tail[:1] in '-+':
dir, tail = tail[:1], tail[1:]
if not isnumeric(tail):
raise Error, "bad message list %s" % seq
try:
count = int(tail)
except (ValueError, OverflowError):
# Can't use sys.maxint because of i+count below
count = len(all)
try:
anchor = self._parseindex(head, all)
except Error, msg:
seqs = self.getsequences()
if not head in seqs:
if not msg:
msg = "bad message list %s" % seq
raise Error, msg, sys.exc_info()[2]
msgs = seqs[head]
if not msgs:
raise Error, "sequence %s empty" % head
if dir == '-':
return msgs[-count:]
else:
return msgs[:count]
else:
if not dir:
if head in ('prev', 'last'):
dir = '-'
if dir == '-':
i = bisect(all, anchor)
return all[max(0, i-count):i]
else:
i = bisect(all, anchor-1)
return all[i:i+count]
# Test for X-Y next
i = seq.find('-')
if i >= 0:
begin = self._parseindex(seq[:i], all)
end = self._parseindex(seq[i+1:], all)
i = bisect(all, begin-1)
j = bisect(all, end)
r = all[i:j]
if not r:
raise Error, "bad message list %s" % seq
return r
# Neither X:Y nor X-Y; must be a number or a (pseudo-)sequence
try:
n = self._parseindex(seq, all)
except Error, msg:
seqs = self.getsequences()
if not seq in seqs:
if not msg:
msg = "bad message list %s" % seq
raise Error, msg
return seqs[seq]
else:
if n not in all:
if isnumeric(seq):
raise Error, "message %d doesn't exist" % n
else:
raise Error, "no %s message" % seq
else:
return [n]
def _parseindex(self, seq, all):
"""Internal: parse a message number (or cur, first, etc.)."""
if isnumeric(seq):
try:
return int(seq)
except (OverflowError, ValueError):
return sys.maxint
if seq in ('cur', '.'):
return self.getcurrent()
if seq == 'first':
return all[0]
if seq == 'last':
return all[-1]
if seq == 'next':
n = self.getcurrent()
i = bisect(all, n)
try:
return all[i]
except IndexError:
raise Error, "no next message"
if seq == 'prev':
n = self.getcurrent()
i = bisect(all, n-1)
if i == 0:
raise Error, "no prev message"
try:
return all[i-1]
except IndexError:
raise Error, "no prev message"
raise Error, None
def openmessage(self, n):
"""Open a message -- returns a Message object."""
return Message(self, n)
def removemessages(self, list):
"""Remove one or more messages -- may raise os.error."""
errors = []
deleted = []
for n in list:
path = self.getmessagefilename(n)
commapath = self.getmessagefilename(',' + str(n))
try:
os.unlink(commapath)
except os.error:
pass
try:
os.rename(path, commapath)
except os.error, msg:
errors.append(msg)
else:
deleted.append(n)
if deleted:
self.removefromallsequences(deleted)
if errors:
if len(errors) == 1:
raise os.error, errors[0]
else:
raise os.error, ('multiple errors:', errors)
def refilemessages(self, list, tofolder, keepsequences=0):
"""Refile one or more messages -- may raise os.error.
'tofolder' is an open folder object."""
errors = []
refiled = {}
for n in list:
ton = tofolder.getlast() + 1
path = self.getmessagefilename(n)
topath = tofolder.getmessagefilename(ton)
try:
os.rename(path, topath)
except os.error:
# Try copying
try:
shutil.copy2(path, topath)
os.unlink(path)
except (IOError, os.error), msg:
errors.append(msg)
try:
os.unlink(topath)
except os.error:
pass
continue
tofolder.setlast(ton)
refiled[n] = ton
if refiled:
if keepsequences:
tofolder._copysequences(self, refiled.items())
self.removefromallsequences(refiled.keys())
if errors:
if len(errors) == 1:
raise os.error, errors[0]
else:
raise os.error, ('multiple errors:', errors)
def _copysequences(self, fromfolder, refileditems):
"""Helper for refilemessages() to copy sequences."""
fromsequences = fromfolder.getsequences()
tosequences = self.getsequences()
changed = 0
for name, seq in fromsequences.items():
try:
toseq = tosequences[name]
new = 0
except KeyError:
toseq = []
new = 1
for fromn, ton in refileditems:
if fromn in seq:
toseq.append(ton)
changed = 1
if new and toseq:
tosequences[name] = toseq
if changed:
self.putsequences(tosequences)
def movemessage(self, n, tofolder, ton):
"""Move one message over a specific destination message,
which may or may not already exist."""
path = self.getmessagefilename(n)
# Open it to check that it exists
f = open(path)
f.close()
del f
topath = tofolder.getmessagefilename(ton)
backuptopath = tofolder.getmessagefilename(',%d' % ton)
try:
os.rename(topath, backuptopath)
except os.error:
pass
try:
os.rename(path, topath)
except os.error:
# Try copying
ok = 0
try:
tofolder.setlast(None)
shutil.copy2(path, topath)
ok = 1
finally:
if not ok:
try:
os.unlink(topath)
except os.error:
pass
os.unlink(path)
self.removefromallsequences([n])
def copymessage(self, n, tofolder, ton):
"""Copy one message over a specific destination message,
which may or may not already exist."""
path = self.getmessagefilename(n)
# Open it to check that it exists
f = open(path)
f.close()
del f
topath = tofolder.getmessagefilename(ton)
backuptopath = tofolder.getmessagefilename(',%d' % ton)
try:
os.rename(topath, backuptopath)
except os.error:
pass
ok = 0
try:
tofolder.setlast(None)
shutil.copy2(path, topath)
ok = 1
finally:
if not ok:
try:
os.unlink(topath)
except os.error:
pass
def createmessage(self, n, txt):
"""Create a message, with text from the open file txt."""
path = self.getmessagefilename(n)
backuppath = self.getmessagefilename(',%d' % n)
try:
os.rename(path, backuppath)
except os.error:
pass
ok = 0
BUFSIZE = 16*1024
try:
f = open(path, "w")
while 1:
buf = txt.read(BUFSIZE)
if not buf:
break
f.write(buf)
f.close()
ok = 1
finally:
if not ok:
try:
os.unlink(path)
except os.error:
pass
def removefromallsequences(self, list):
"""Remove one or more messages from all sequences (including last)
-- but not from 'cur'!!!"""
if hasattr(self, 'last') and self.last in list:
del self.last
sequences = self.getsequences()
changed = 0
for name, seq in sequences.items():
if name == 'cur':
continue
for n in list:
if n in seq:
seq.remove(n)
changed = 1
if not seq:
del sequences[name]
if changed:
self.putsequences(sequences)
def getlast(self):
"""Return the last message number."""
if not hasattr(self, 'last'):
self.listmessages() # Set self.last
return self.last
def setlast(self, last):
"""Set the last message number."""
if last is None:
if hasattr(self, 'last'):
del self.last
else:
self.last = last
class Message(mimetools.Message):
def __init__(self, f, n, fp = None):
"""Constructor."""
self.folder = f
self.number = n
if fp is None:
path = f.getmessagefilename(n)
fp = open(path, 'r')
mimetools.Message.__init__(self, fp)
def __repr__(self):
"""String representation."""
return 'Message(%s, %s)' % (repr(self.folder), self.number)
def getheadertext(self, pred = None):
"""Return the message's header text as a string. If an
argument is specified, it is used as a filter predicate to
decide which headers to return (its argument is the header
name converted to lower case)."""
if pred is None:
return ''.join(self.headers)
headers = []
hit = 0
for line in self.headers:
if not line[0].isspace():
i = line.find(':')
if i > 0:
hit = pred(line[:i].lower())
if hit: headers.append(line)
return ''.join(headers)
def getbodytext(self, decode = 1):
"""Return the message's body text as string. This undoes a
Content-Transfer-Encoding, but does not interpret other MIME
features (e.g. multipart messages). To suppress decoding,
pass 0 as an argument."""
self.fp.seek(self.startofbody)
encoding = self.getencoding()
if not decode or encoding in ('', '7bit', '8bit', 'binary'):
return self.fp.read()
try:
from cStringIO import StringIO
except ImportError:
from StringIO import StringIO
output = StringIO()
mimetools.decode(self.fp, output, encoding)
return output.getvalue()
def getbodyparts(self):
"""Only for multipart messages: return the message's body as a
list of SubMessage objects. Each submessage object behaves
(almost) as a Message object."""
if self.getmaintype() != 'multipart':
raise Error, 'Content-Type is not multipart/*'
bdry = self.getparam('boundary')
if not bdry:
raise Error, 'multipart/* without boundary param'
self.fp.seek(self.startofbody)
mf = multifile.MultiFile(self.fp)
mf.push(bdry)
parts = []
while mf.next():
n = "%s.%r" % (self.number, 1 + len(parts))
part = SubMessage(self.folder, n, mf)
parts.append(part)
mf.pop()
return parts
def getbody(self):
"""Return body, either a string or a list of messages."""
if self.getmaintype() == 'multipart':
return self.getbodyparts()
else:
return self.getbodytext()
class SubMessage(Message):
def __init__(self, f, n, fp):
"""Constructor."""
Message.__init__(self, f, n, fp)
if self.getmaintype() == 'multipart':
self.body = Message.getbodyparts(self)
else:
self.body = Message.getbodytext(self)
self.bodyencoded = Message.getbodytext(self, decode=0)
# XXX If this is big, should remember file pointers
def __repr__(self):
"""String representation."""
f, n, fp = self.folder, self.number, self.fp
return 'SubMessage(%s, %s, %s)' % (f, n, fp)
def getbodytext(self, decode = 1):
if not decode:
return self.bodyencoded
if type(self.body) == type(''):
return self.body
def getbodyparts(self):
if type(self.body) == type([]):
return self.body
def getbody(self):
return self.body
class IntSet:
"""Class implementing sets of integers.
This is an efficient representation for sets consisting of several
continuous ranges, e.g. 1-100,200-400,402-1000 is represented
internally as a list of three pairs: [(1,100), (200,400),
(402,1000)]. The internal representation is always kept normalized.
The constructor has up to three arguments:
- the string used to initialize the set (default ''),
- the separator between ranges (default ',')
- the separator between begin and end of a range (default '-')
The separators must be strings (not regexprs) and should be different.
The tostring() function yields a string that can be passed to another
IntSet constructor; __repr__() is a valid IntSet constructor itself.
"""
# XXX The default begin/end separator means that negative numbers are
# not supported very well.
#
# XXX There are currently no operations to remove set elements.
def __init__(self, data = None, sep = ',', rng = '-'):
self.pairs = []
self.sep = sep
self.rng = rng
if data: self.fromstring(data)
def reset(self):
self.pairs = []
def __cmp__(self, other):
return cmp(self.pairs, other.pairs)
def __hash__(self):
return hash(self.pairs)
def __repr__(self):
return 'IntSet(%r, %r, %r)' % (self.tostring(), self.sep, self.rng)
def normalize(self):
self.pairs.sort()
i = 1
while i < len(self.pairs):
alo, ahi = self.pairs[i-1]
blo, bhi = self.pairs[i]
if ahi >= blo-1:
self.pairs[i-1:i+1] = [(alo, max(ahi, bhi))]
else:
i = i+1
def tostring(self):
s = ''
for lo, hi in self.pairs:
if lo == hi: t = repr(lo)
else: t = repr(lo) + self.rng + repr(hi)
if s: s = s + (self.sep + t)
else: s = t
return s
def tolist(self):
l = []
for lo, hi in self.pairs:
m = range(lo, hi+1)
l = l + m
return l
def fromlist(self, list):
for i in list:
self.append(i)
def clone(self):
new = IntSet()
new.pairs = self.pairs[:]
return new
def min(self):
return self.pairs[0][0]
def max(self):
return self.pairs[-1][-1]
def contains(self, x):
for lo, hi in self.pairs:
if lo <= x <= hi: return True
return False
def append(self, x):
for i in range(len(self.pairs)):
lo, hi = self.pairs[i]
if x < lo: # Need to insert before
if x+1 == lo:
self.pairs[i] = (x, hi)
else:
self.pairs.insert(i, (x, x))
if i > 0 and x-1 == self.pairs[i-1][1]:
# Merge with previous
self.pairs[i-1:i+1] = [
(self.pairs[i-1][0],
self.pairs[i][1])
]
return
if x <= hi: # Already in set
return
i = len(self.pairs) - 1
if i >= 0:
lo, hi = self.pairs[i]
if x-1 == hi:
self.pairs[i] = lo, x
return
self.pairs.append((x, x))
def addpair(self, xlo, xhi):
if xlo > xhi: return
self.pairs.append((xlo, xhi))
self.normalize()
def fromstring(self, data):
new = []
for part in data.split(self.sep):
list = []
for subp in part.split(self.rng):
s = subp.strip()
list.append(int(s))
if len(list) == 1:
new.append((list[0], list[0]))
elif len(list) == 2 and list[0] <= list[1]:
new.append((list[0], list[1]))
else:
raise ValueError, 'bad data passed to IntSet'
self.pairs = self.pairs + new
self.normalize()
# Subroutines to read/write entries in .mh_profile and .mh_sequences
def pickline(file, key, casefold = 1):
try:
f = open(file, 'r')
except IOError:
return None
pat = re.escape(key) + ':'
prog = re.compile(pat, casefold and re.IGNORECASE)
while 1:
line = f.readline()
if not line: break
if prog.match(line):
text = line[len(key)+1:]
while 1:
line = f.readline()
if not line or not line[0].isspace():
break
text = text + line
return text.strip()
return None
def updateline(file, key, value, casefold = 1):
try:
f = open(file, 'r')
lines = f.readlines()
f.close()
except IOError:
lines = []
pat = re.escape(key) + ':(.*)\n'
prog = re.compile(pat, casefold and re.IGNORECASE)
if value is None:
newline = None
else:
newline = '%s: %s\n' % (key, value)
for i in range(len(lines)):
line = lines[i]
if prog.match(line):
if newline is None:
del lines[i]
else:
lines[i] = newline
break
else:
if newline is not None:
lines.append(newline)
tempfile = file + "~"
f = open(tempfile, 'w')
for line in lines:
f.write(line)
f.close()
os.rename(tempfile, file)
# Test program
def test():
global mh, f
os.system('rm -rf $HOME/Mail/@test')
mh = MH()
def do(s): print s; print eval(s)
do('mh.listfolders()')
do('mh.listallfolders()')
testfolders = ['@test', '@test/test1', '@test/test2',
'@test/test1/test11', '@test/test1/test12',
'@test/test1/test11/test111']
for t in testfolders: do('mh.makefolder(%r)' % (t,))
do('mh.listsubfolders(\'@test\')')
do('mh.listallsubfolders(\'@test\')')
f = mh.openfolder('@test')
do('f.listsubfolders()')
do('f.listallsubfolders()')
do('f.getsequences()')
seqs = f.getsequences()
seqs['foo'] = IntSet('1-10 12-20', ' ').tolist()
print seqs
f.putsequences(seqs)
do('f.getsequences()')
for t in reversed(testfolders): do('mh.deletefolder(%r)' % (t,))
do('mh.getcontext()')
context = mh.getcontext()
f = mh.openfolder(context)
do('f.getcurrent()')
for seq in ('first', 'last', 'cur', '.', 'prev', 'next',
'first:3', 'last:3', 'cur:3', 'cur:-3',
'prev:3', 'next:3',
'1:3', '1:-3', '100:3', '100:-3', '10000:3', '10000:-3',
'all'):
try:
do('f.parsesequence(%r)' % (seq,))
except Error, msg:
print "Error:", msg
stuff = os.popen("pick %r 2>/dev/null" % (seq,)).read()
list = map(int, stuff.split())
print list, "<-- pick"
do('f.listmessages()')
if __name__ == '__main__':
test()
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Demo | Folder | 0755 |
|
|
| Doc | Folder | 0755 |
|
|
| Tools | Folder | 0755 |
|
|
| bsddb | Folder | 0755 |
|
|
| compiler | Folder | 0755 |
|
|
| config | Folder | 0755 |
|
|
| ctypes | Folder | 0755 |
|
|
| curses | Folder | 0755 |
|
|
| distutils | Folder | 0755 |
|
|
| Folder | 0755 |
|
||
| encodings | Folder | 0755 |
|
|
| hotshot | Folder | 0755 |
|
|
| idlelib | Folder | 0755 |
|
|
| importlib | Folder | 0755 |
|
|
| json | Folder | 0755 |
|
|
| lib-dynload | Folder | 0755 |
|
|
| lib-tk | Folder | 0755 |
|
|
| lib2to3 | Folder | 0755 |
|
|
| logging | Folder | 0755 |
|
|
| multiprocessing | Folder | 0755 |
|
|
| plat-linux2 | Folder | 0755 |
|
|
| pydoc_data | Folder | 0755 |
|
|
| site-packages | Folder | 0755 |
|
|
| sqlite3 | Folder | 0755 |
|
|
| test | Folder | 0755 |
|
|
| unittest | Folder | 0755 |
|
|
| wsgiref | Folder | 0755 |
|
|
| xml | Folder | 0755 |
|
|
| BaseHTTPServer.py | File | 21.93 KB | 0644 |
|
| BaseHTTPServer.pyc | File | 21.18 KB | 0644 |
|
| BaseHTTPServer.pyo | File | 21.18 KB | 0644 |
|
| Bastion.py | File | 5.61 KB | 0644 |
|
| Bastion.pyc | File | 6.5 KB | 0644 |
|
| Bastion.pyo | File | 6.5 KB | 0644 |
|
| CGIHTTPServer.py | File | 12.84 KB | 0644 |
|
| CGIHTTPServer.pyc | File | 10.84 KB | 0644 |
|
| CGIHTTPServer.pyo | File | 10.84 KB | 0644 |
|
| ConfigParser.py | File | 27.1 KB | 0644 |
|
| ConfigParser.pyc | File | 24.62 KB | 0644 |
|
| ConfigParser.pyo | File | 24.62 KB | 0644 |
|
| Cookie.py | File | 25.24 KB | 0644 |
|
| Cookie.pyc | File | 21.89 KB | 0644 |
|
| Cookie.pyo | File | 21.89 KB | 0644 |
|
| DocXMLRPCServer.py | File | 10.25 KB | 0644 |
|
| DocXMLRPCServer.pyc | File | 9.6 KB | 0644 |
|
| DocXMLRPCServer.pyo | File | 9.5 KB | 0644 |
|
| HTMLParser.py | File | 16.58 KB | 0644 |
|
| HTMLParser.pyc | File | 13.39 KB | 0644 |
|
| HTMLParser.pyo | File | 13.1 KB | 0644 |
|
| MimeWriter.py | File | 6.33 KB | 0644 |
|
| MimeWriter.pyc | File | 7.19 KB | 0644 |
|
| MimeWriter.pyo | File | 7.19 KB | 0644 |
|
| Queue.py | File | 8.36 KB | 0644 |
|
| Queue.pyc | File | 9.19 KB | 0644 |
|
| Queue.pyo | File | 9.19 KB | 0644 |
|
| SimpleHTTPServer.py | File | 7.25 KB | 0644 |
|
| SimpleHTTPServer.pyc | File | 7.55 KB | 0644 |
|
| SimpleHTTPServer.pyo | File | 7.55 KB | 0644 |
|
| SimpleXMLRPCServer.py | File | 25.17 KB | 0644 |
|
| SimpleXMLRPCServer.pyc | File | 22.31 KB | 0644 |
|
| SimpleXMLRPCServer.pyo | File | 22.31 KB | 0644 |
|
| SocketServer.py | File | 23.29 KB | 0644 |
|
| SocketServer.pyc | File | 23.49 KB | 0644 |
|
| SocketServer.pyo | File | 23.49 KB | 0644 |
|
| StringIO.py | File | 10.41 KB | 0644 |
|
| StringIO.pyc | File | 11.21 KB | 0644 |
|
| StringIO.pyo | File | 11.21 KB | 0644 |
|
| UserDict.py | File | 5.67 KB | 0644 |
|
| UserDict.pyc | File | 8.61 KB | 0644 |
|
| UserDict.pyo | File | 8.61 KB | 0644 |
|
| UserList.py | File | 3.56 KB | 0644 |
|
| UserList.pyc | File | 6.42 KB | 0644 |
|
| UserList.pyo | File | 6.42 KB | 0644 |
|
| UserString.py | File | 9.46 KB | 0755 |
|
| UserString.pyc | File | 14.52 KB | 0644 |
|
| UserString.pyo | File | 14.52 KB | 0644 |
|
| _LWPCookieJar.py | File | 6.4 KB | 0644 |
|
| _LWPCookieJar.pyc | File | 5.4 KB | 0644 |
|
| _LWPCookieJar.pyo | File | 5.4 KB | 0644 |
|
| _MozillaCookieJar.py | File | 5.67 KB | 0644 |
|
| _MozillaCookieJar.pyc | File | 4.37 KB | 0644 |
|
| _MozillaCookieJar.pyo | File | 4.33 KB | 0644 |
|
| __future__.py | File | 4.28 KB | 0644 |
|
| __future__.pyc | File | 4.13 KB | 0644 |
|
| __future__.pyo | File | 4.13 KB | 0644 |
|
| __phello__.foo.py | File | 64 B | 0644 |
|
| __phello__.foo.pyc | File | 125 B | 0644 |
|
| __phello__.foo.pyo | File | 125 B | 0644 |
|
| _abcoll.py | File | 17.45 KB | 0644 |
|
| _abcoll.pyc | File | 24.4 KB | 0644 |
|
| _abcoll.pyo | File | 24.4 KB | 0644 |
|
| _osx_support.py | File | 18.03 KB | 0644 |
|
| _osx_support.pyc | File | 11.28 KB | 0644 |
|
| _osx_support.pyo | File | 11.28 KB | 0644 |
|
| _pyio.py | File | 67.24 KB | 0644 |
|
| _pyio.pyc | File | 62.71 KB | 0644 |
|
| _pyio.pyo | File | 62.71 KB | 0644 |
|
| _strptime.py | File | 19.75 KB | 0644 |
|
| _strptime.pyc | File | 14.53 KB | 0644 |
|
| _strptime.pyo | File | 14.53 KB | 0644 |
|
| _sysconfigdata.py | File | 17.56 KB | 0644 |
|
| _sysconfigdata.pyc | File | 20.72 KB | 0644 |
|
| _sysconfigdata.pyo | File | 20.72 KB | 0644 |
|
| _threading_local.py | File | 7.28 KB | 0644 |
|
| _threading_local.pyc | File | 6.45 KB | 0644 |
|
| _threading_local.pyo | File | 6.45 KB | 0644 |
|
| _weakrefset.py | File | 5.48 KB | 0644 |
|
| _weakrefset.pyc | File | 9.25 KB | 0644 |
|
| _weakrefset.pyo | File | 9.25 KB | 0644 |
|
| abc.py | File | 6.98 KB | 0644 |
|
| abc.pyc | File | 6 KB | 0644 |
|
| abc.pyo | File | 5.94 KB | 0644 |
|
| aifc.py | File | 32.94 KB | 0644 |
|
| aifc.pyc | File | 29.31 KB | 0644 |
|
| aifc.pyo | File | 29.31 KB | 0644 |
|
| antigravity.py | File | 60 B | 0644 |
|
| antigravity.pyc | File | 203 B | 0644 |
|
| antigravity.pyo | File | 203 B | 0644 |
|
| anydbm.py | File | 2.6 KB | 0644 |
|
| anydbm.pyc | File | 2.73 KB | 0644 |
|
| anydbm.pyo | File | 2.73 KB | 0644 |
|
| argparse.py | File | 86.46 KB | 0644 |
|
| argparse.pyc | File | 62.57 KB | 0644 |
|
| argparse.pyo | File | 62.41 KB | 0644 |
|
| ast.py | File | 11.53 KB | 0644 |
|
| ast.pyc | File | 12.65 KB | 0644 |
|
| ast.pyo | File | 12.65 KB | 0644 |
|
| asynchat.py | File | 11.13 KB | 0644 |
|
| asynchat.pyc | File | 8.44 KB | 0644 |
|
| asynchat.pyo | File | 8.44 KB | 0644 |
|
| asyncore.py | File | 20.36 KB | 0644 |
|
| asyncore.pyc | File | 18.4 KB | 0644 |
|
| asyncore.pyo | File | 18.4 KB | 0644 |
|
| atexit.py | File | 1.67 KB | 0644 |
|
| atexit.pyc | File | 2.15 KB | 0644 |
|
| atexit.pyo | File | 2.15 KB | 0644 |
|
| audiodev.py | File | 7.42 KB | 0644 |
|
| audiodev.pyc | File | 8.27 KB | 0644 |
|
| audiodev.pyo | File | 8.27 KB | 0644 |
|
| base64.py | File | 11.09 KB | 0755 |
|
| base64.pyc | File | 10.63 KB | 0644 |
|
| base64.pyo | File | 10.63 KB | 0644 |
|
| bdb.py | File | 21.21 KB | 0644 |
|
| bdb.pyc | File | 18.65 KB | 0644 |
|
| bdb.pyo | File | 18.65 KB | 0644 |
|
| binhex.py | File | 14.14 KB | 0644 |
|
| binhex.pyc | File | 15.04 KB | 0644 |
|
| binhex.pyo | File | 15.04 KB | 0644 |
|
| bisect.py | File | 2.53 KB | 0644 |
|
| bisect.pyc | File | 3 KB | 0644 |
|
| bisect.pyo | File | 3 KB | 0644 |
|
| cProfile.py | File | 6.43 KB | 0755 |
|
| cProfile.pyc | File | 6.25 KB | 0644 |
|
| cProfile.pyo | File | 6.25 KB | 0644 |
|
| calendar.py | File | 22.76 KB | 0644 |
|
| calendar.pyc | File | 27.13 KB | 0644 |
|
| calendar.pyo | File | 27.13 KB | 0644 |
|
| cgi.py | File | 33.68 KB | 0755 |
|
| cgi.pyc | File | 31.71 KB | 0644 |
|
| cgi.pyo | File | 31.71 KB | 0644 |
|
| cgitb.py | File | 11.89 KB | 0644 |
|
| cgitb.pyc | File | 11.9 KB | 0644 |
|
| cgitb.pyo | File | 11.9 KB | 0644 |
|
| chunk.py | File | 5.25 KB | 0644 |
|
| chunk.pyc | File | 5.46 KB | 0644 |
|
| chunk.pyo | File | 5.46 KB | 0644 |
|
| cmd.py | File | 14.67 KB | 0644 |
|
| cmd.pyc | File | 13.71 KB | 0644 |
|
| cmd.pyo | File | 13.71 KB | 0644 |
|
| code.py | File | 9.95 KB | 0644 |
|
| code.pyc | File | 10.09 KB | 0644 |
|
| code.pyo | File | 10.09 KB | 0644 |
|
| codecs.py | File | 34.44 KB | 0644 |
|
| codecs.pyc | File | 35.74 KB | 0644 |
|
| codecs.pyo | File | 35.74 KB | 0644 |
|
| codeop.py | File | 5.86 KB | 0644 |
|
| codeop.pyc | File | 6.44 KB | 0644 |
|
| codeop.pyo | File | 6.44 KB | 0644 |
|
| collections.py | File | 25.28 KB | 0644 |
|
| collections.pyc | File | 23.99 KB | 0644 |
|
| collections.pyo | File | 23.94 KB | 0644 |
|
| colorsys.py | File | 3.6 KB | 0644 |
|
| colorsys.pyc | File | 3.9 KB | 0644 |
|
| colorsys.pyo | File | 3.9 KB | 0644 |
|
| commands.py | File | 2.49 KB | 0644 |
|
| commands.pyc | File | 2.41 KB | 0644 |
|
| commands.pyo | File | 2.41 KB | 0644 |
|
| compileall.py | File | 7.58 KB | 0644 |
|
| compileall.pyc | File | 6.85 KB | 0644 |
|
| compileall.pyo | File | 6.85 KB | 0644 |
|
| contextlib.py | File | 4.32 KB | 0644 |
|
| contextlib.pyc | File | 4.35 KB | 0644 |
|
| contextlib.pyo | File | 4.35 KB | 0644 |
|
| cookielib.py | File | 63.21 KB | 0644 |
|
| cookielib.pyc | File | 53.55 KB | 0644 |
|
| cookielib.pyo | File | 53.37 KB | 0644 |
|
| copy.py | File | 11.25 KB | 0644 |
|
| copy.pyc | File | 11.91 KB | 0644 |
|
| copy.pyo | File | 11.82 KB | 0644 |
|
| copy_reg.py | File | 6.64 KB | 0644 |
|
| copy_reg.pyc | File | 4.99 KB | 0644 |
|
| copy_reg.pyo | File | 4.95 KB | 0644 |
|
| crypt.py | File | 2.24 KB | 0644 |
|
| crypt.pyc | File | 2.89 KB | 0644 |
|
| crypt.pyo | File | 2.89 KB | 0644 |
|
| csv.py | File | 15.96 KB | 0644 |
|
| csv.pyc | File | 13.14 KB | 0644 |
|
| csv.pyo | File | 13.14 KB | 0644 |
|
| dbhash.py | File | 498 B | 0644 |
|
| dbhash.pyc | File | 718 B | 0644 |
|
| dbhash.pyo | File | 718 B | 0644 |
|
| decimal.py | File | 215.84 KB | 0644 |
|
| decimal.pyc | File | 167.33 KB | 0644 |
|
| decimal.pyo | File | 167.33 KB | 0644 |
|
| difflib.py | File | 80.42 KB | 0644 |
|
| difflib.pyc | File | 60.5 KB | 0644 |
|
| difflib.pyo | File | 60.45 KB | 0644 |
|
| dircache.py | File | 1.1 KB | 0644 |
|
| dircache.pyc | File | 1.54 KB | 0644 |
|
| dircache.pyo | File | 1.54 KB | 0644 |
|
| dis.py | File | 6.35 KB | 0644 |
|
| dis.pyc | File | 6.08 KB | 0644 |
|
| dis.pyo | File | 6.08 KB | 0644 |
|
| doctest.py | File | 102.01 KB | 0644 |
|
| doctest.pyc | File | 81.45 KB | 0644 |
|
| doctest.pyo | File | 81.17 KB | 0644 |
|
| dumbdbm.py | File | 8.61 KB | 0644 |
|
| dumbdbm.pyc | File | 6.41 KB | 0644 |
|
| dumbdbm.pyo | File | 6.41 KB | 0644 |
|
| dummy_thread.py | File | 4.31 KB | 0644 |
|
| dummy_thread.pyc | File | 5.27 KB | 0644 |
|
| dummy_thread.pyo | File | 5.27 KB | 0644 |
|
| dummy_threading.py | File | 2.74 KB | 0644 |
|
| dummy_threading.pyc | File | 1.25 KB | 0644 |
|
| dummy_threading.pyo | File | 1.25 KB | 0644 |
|
| filecmp.py | File | 9.36 KB | 0644 |
|
| filecmp.pyc | File | 9.4 KB | 0644 |
|
| filecmp.pyo | File | 9.4 KB | 0644 |
|
| fileinput.py | File | 13.81 KB | 0644 |
|
| fileinput.pyc | File | 14.48 KB | 0644 |
|
| fileinput.pyo | File | 14.48 KB | 0644 |
|
| fnmatch.py | File | 3.16 KB | 0644 |
|
| fnmatch.pyc | File | 3.45 KB | 0644 |
|
| fnmatch.pyo | File | 3.45 KB | 0644 |
|
| formatter.py | File | 14.56 KB | 0644 |
|
| formatter.pyc | File | 18.73 KB | 0644 |
|
| formatter.pyo | File | 18.73 KB | 0644 |
|
| fpformat.py | File | 4.59 KB | 0644 |
|
| fpformat.pyc | File | 4.56 KB | 0644 |
|
| fpformat.pyo | File | 4.56 KB | 0644 |
|
| fractions.py | File | 21.87 KB | 0644 |
|
| fractions.pyc | File | 19.27 KB | 0644 |
|
| fractions.pyo | File | 19.27 KB | 0644 |
|
| ftplib.py | File | 36.1 KB | 0644 |
|
| ftplib.pyc | File | 33.38 KB | 0644 |
|
| ftplib.pyo | File | 33.38 KB | 0644 |
|
| functools.py | File | 4.37 KB | 0644 |
|
| functools.pyc | File | 5.95 KB | 0644 |
|
| functools.pyo | File | 5.95 KB | 0644 |
|
| genericpath.py | File | 2.94 KB | 0644 |
|
| genericpath.pyc | File | 3.19 KB | 0644 |
|
| genericpath.pyo | File | 3.19 KB | 0644 |
|
| getopt.py | File | 7.15 KB | 0644 |
|
| getopt.pyc | File | 6.5 KB | 0644 |
|
| getopt.pyo | File | 6.45 KB | 0644 |
|
| getpass.py | File | 5.43 KB | 0644 |
|
| getpass.pyc | File | 4.63 KB | 0644 |
|
| getpass.pyo | File | 4.63 KB | 0644 |
|
| gettext.py | File | 19.47 KB | 0644 |
|
| gettext.pyc | File | 15.19 KB | 0644 |
|
| gettext.pyo | File | 15.19 KB | 0644 |
|
| glob.py | File | 2.86 KB | 0644 |
|
| glob.pyc | File | 2.83 KB | 0644 |
|
| glob.pyo | File | 2.83 KB | 0644 |
|
| gzip.py | File | 18.26 KB | 0644 |
|
| gzip.pyc | File | 14.72 KB | 0644 |
|
| gzip.pyo | File | 14.72 KB | 0644 |
|
| hashlib.py | File | 7.48 KB | 0644 |
|
| hashlib.pyc | File | 6.74 KB | 0644 |
|
| hashlib.pyo | File | 6.74 KB | 0644 |
|
| heapq.py | File | 17.76 KB | 0644 |
|
| heapq.pyc | File | 14.13 KB | 0644 |
|
| heapq.pyo | File | 14.13 KB | 0644 |
|
| hmac.py | File | 4.48 KB | 0644 |
|
| hmac.pyc | File | 4.44 KB | 0644 |
|
| hmac.pyo | File | 4.44 KB | 0644 |
|
| htmlentitydefs.py | File | 17.63 KB | 0644 |
|
| htmlentitydefs.pyc | File | 6.22 KB | 0644 |
|
| htmlentitydefs.pyo | File | 6.22 KB | 0644 |
|
| htmllib.py | File | 12.57 KB | 0644 |
|
| htmllib.pyc | File | 19.83 KB | 0644 |
|
| htmllib.pyo | File | 19.83 KB | 0644 |
|
| httplib.py | File | 50.32 KB | 0644 |
|
| httplib.pyc | File | 36.61 KB | 0644 |
|
| httplib.pyo | File | 36.43 KB | 0644 |
|
| ihooks.py | File | 18.54 KB | 0644 |
|
| ihooks.pyc | File | 20.87 KB | 0644 |
|
| ihooks.pyo | File | 20.87 KB | 0644 |
|
| imaplib.py | File | 47.14 KB | 0644 |
|
| imaplib.pyc | File | 44.28 KB | 0644 |
|
| imaplib.pyo | File | 41.63 KB | 0644 |
|
| imghdr.py | File | 3.46 KB | 0644 |
|
| imghdr.pyc | File | 4.73 KB | 0644 |
|
| imghdr.pyo | File | 4.73 KB | 0644 |
|
| imputil.py | File | 25.16 KB | 0644 |
|
| imputil.pyc | File | 15.26 KB | 0644 |
|
| imputil.pyo | File | 15.08 KB | 0644 |
|
| inspect.py | File | 41.47 KB | 0644 |
|
| inspect.pyc | File | 39.04 KB | 0644 |
|
| inspect.pyo | File | 39.04 KB | 0644 |
|
| io.py | File | 3.12 KB | 0644 |
|
| io.pyc | File | 3.4 KB | 0644 |
|
| io.pyo | File | 3.4 KB | 0644 |
|
| keyword.py | File | 1.95 KB | 0755 |
|
| keyword.pyc | File | 2.06 KB | 0644 |
|
| keyword.pyo | File | 2.06 KB | 0644 |
|
| linecache.py | File | 3.87 KB | 0644 |
|
| linecache.pyc | File | 3.14 KB | 0644 |
|
| linecache.pyo | File | 3.14 KB | 0644 |
|
| locale.py | File | 87.33 KB | 0644 |
|
| locale.pyc | File | 48.77 KB | 0644 |
|
| locale.pyo | File | 48.77 KB | 0644 |
|
| macpath.py | File | 6.11 KB | 0644 |
|
| macpath.pyc | File | 7.47 KB | 0644 |
|
| macpath.pyo | File | 7.47 KB | 0644 |
|
| macurl2path.py | File | 3.2 KB | 0644 |
|
| macurl2path.pyc | File | 2.71 KB | 0644 |
|
| macurl2path.pyo | File | 2.71 KB | 0644 |
|
| mailbox.py | File | 78.86 KB | 0644 |
|
| mailbox.pyc | File | 74.87 KB | 0644 |
|
| mailbox.pyo | File | 74.82 KB | 0644 |
|
| mailcap.py | File | 7.25 KB | 0644 |
|
| mailcap.pyc | File | 6.92 KB | 0644 |
|
| mailcap.pyo | File | 6.92 KB | 0644 |
|
| markupbase.py | File | 14.3 KB | 0644 |
|
| markupbase.pyc | File | 9.08 KB | 0644 |
|
| markupbase.pyo | File | 8.89 KB | 0644 |
|
| md5.py | File | 358 B | 0644 |
|
| md5.pyc | File | 378 B | 0644 |
|
| md5.pyo | File | 378 B | 0644 |
|
| mhlib.py | File | 32.65 KB | 0644 |
|
| mhlib.pyc | File | 33.01 KB | 0644 |
|
| mhlib.pyo | File | 33.01 KB | 0644 |
|
| mimetools.py | File | 7 KB | 0644 |
|
| mimetools.pyc | File | 8.03 KB | 0644 |
|
| mimetools.pyo | File | 8.03 KB | 0644 |
|
| mimetypes.py | File | 20.22 KB | 0644 |
|
| mimetypes.pyc | File | 17.86 KB | 0644 |
|
| mimetypes.pyo | File | 17.86 KB | 0644 |
|
| mimify.py | File | 14.67 KB | 0755 |
|
| mimify.pyc | File | 11.71 KB | 0644 |
|
| mimify.pyo | File | 11.71 KB | 0644 |
|
| modulefinder.py | File | 23.71 KB | 0644 |
|
| modulefinder.pyc | File | 18.27 KB | 0644 |
|
| modulefinder.pyo | File | 18.19 KB | 0644 |
|
| multifile.py | File | 4.71 KB | 0644 |
|
| multifile.pyc | File | 5.29 KB | 0644 |
|
| multifile.pyo | File | 5.25 KB | 0644 |
|
| mutex.py | File | 1.83 KB | 0644 |
|
| mutex.pyc | File | 2.46 KB | 0644 |
|
| mutex.pyo | File | 2.46 KB | 0644 |
|
| netrc.py | File | 4.47 KB | 0644 |
|
| netrc.pyc | File | 3.83 KB | 0644 |
|
| netrc.pyo | File | 3.83 KB | 0644 |
|
| new.py | File | 610 B | 0644 |
|
| new.pyc | File | 862 B | 0644 |
|
| new.pyo | File | 862 B | 0644 |
|
| nntplib.py | File | 20.97 KB | 0644 |
|
| nntplib.pyc | File | 20.55 KB | 0644 |
|
| nntplib.pyo | File | 20.55 KB | 0644 |
|
| ntpath.py | File | 18.02 KB | 0644 |
|
| ntpath.pyc | File | 11.6 KB | 0644 |
|
| ntpath.pyo | File | 11.56 KB | 0644 |
|
| nturl2path.py | File | 2.32 KB | 0644 |
|
| nturl2path.pyc | File | 1.77 KB | 0644 |
|
| nturl2path.pyo | File | 1.77 KB | 0644 |
|
| numbers.py | File | 10.08 KB | 0644 |
|
| numbers.pyc | File | 13.68 KB | 0644 |
|
| numbers.pyo | File | 13.68 KB | 0644 |
|
| opcode.py | File | 5.35 KB | 0644 |
|
| opcode.pyc | File | 6 KB | 0644 |
|
| opcode.pyo | File | 6 KB | 0644 |
|
| optparse.py | File | 59.69 KB | 0644 |
|
| optparse.pyc | File | 52.78 KB | 0644 |
|
| optparse.pyo | File | 52.7 KB | 0644 |
|
| os.py | File | 25.17 KB | 0644 |
|
| os.pyc | File | 24.96 KB | 0644 |
|
| os.pyo | File | 24.96 KB | 0644 |
|
| os2emxpath.py | File | 4.5 KB | 0644 |
|
| os2emxpath.pyc | File | 4.39 KB | 0644 |
|
| os2emxpath.pyo | File | 4.39 KB | 0644 |
|
| pdb.doc | File | 7.73 KB | 0644 |
|
| pdb.py | File | 44.94 KB | 0755 |
|
| pdb.pyc | File | 42.59 KB | 0644 |
|
| pdb.pyo | File | 42.59 KB | 0644 |
|
| pickle.py | File | 44.09 KB | 0644 |
|
| pickle.pyc | File | 37.56 KB | 0644 |
|
| pickle.pyo | File | 37.37 KB | 0644 |
|
| pickletools.py | File | 72.79 KB | 0644 |
|
| pickletools.pyc | File | 55.77 KB | 0644 |
|
| pickletools.pyo | File | 54.95 KB | 0644 |
|
| pipes.py | File | 9.36 KB | 0644 |
|
| pipes.pyc | File | 9.09 KB | 0644 |
|
| pipes.pyo | File | 9.09 KB | 0644 |
|
| pkgutil.py | File | 19.87 KB | 0644 |
|
| pkgutil.pyc | File | 18.49 KB | 0644 |
|
| pkgutil.pyo | File | 18.49 KB | 0644 |
|
| platform.py | File | 51.97 KB | 0755 |
|
| platform.pyc | File | 36.04 KB | 0644 |
|
| platform.pyo | File | 36.04 KB | 0644 |
|
| plistlib.py | File | 14.83 KB | 0644 |
|
| plistlib.pyc | File | 18.82 KB | 0644 |
|
| plistlib.pyo | File | 18.73 KB | 0644 |
|
| popen2.py | File | 8.22 KB | 0644 |
|
| popen2.pyc | File | 8.81 KB | 0644 |
|
| popen2.pyo | File | 8.77 KB | 0644 |
|
| poplib.py | File | 12.52 KB | 0644 |
|
| poplib.pyc | File | 13.03 KB | 0644 |
|
| poplib.pyo | File | 13.03 KB | 0644 |
|
| posixfile.py | File | 7.82 KB | 0644 |
|
| posixfile.pyc | File | 7.47 KB | 0644 |
|
| posixfile.pyo | File | 7.47 KB | 0644 |
|
| posixpath.py | File | 13.27 KB | 0644 |
|
| posixpath.pyc | File | 11.03 KB | 0644 |
|
| posixpath.pyo | File | 11.03 KB | 0644 |
|
| pprint.py | File | 11.73 KB | 0644 |
|
| pprint.pyc | File | 10.06 KB | 0644 |
|
| pprint.pyo | File | 9.89 KB | 0644 |
|
| profile.py | File | 22.25 KB | 0755 |
|
| profile.pyc | File | 16.07 KB | 0644 |
|
| profile.pyo | File | 15.83 KB | 0644 |
|
| pstats.py | File | 26.08 KB | 0644 |
|
| pstats.pyc | File | 24.43 KB | 0644 |
|
| pstats.pyo | File | 24.43 KB | 0644 |
|
| pty.py | File | 4.94 KB | 0644 |
|
| pty.pyc | File | 4.85 KB | 0644 |
|
| pty.pyo | File | 4.85 KB | 0644 |
|
| py_compile.py | File | 5.79 KB | 0644 |
|
| py_compile.pyc | File | 6.27 KB | 0644 |
|
| py_compile.pyo | File | 6.27 KB | 0644 |
|
| pyclbr.py | File | 13.07 KB | 0644 |
|
| pyclbr.pyc | File | 9.42 KB | 0644 |
|
| pyclbr.pyo | File | 9.42 KB | 0644 |
|
| pydoc.py | File | 91.12 KB | 0755 |
|
| pydoc.pyc | File | 88.35 KB | 0644 |
|
| pydoc.pyo | File | 88.29 KB | 0644 |
|
| quopri.py | File | 6.81 KB | 0755 |
|
| quopri.pyc | File | 6.42 KB | 0644 |
|
| quopri.pyo | File | 6.42 KB | 0644 |
|
| random.py | File | 31.45 KB | 0644 |
|
| random.pyc | File | 24.99 KB | 0644 |
|
| random.pyo | File | 24.99 KB | 0644 |
|
| re.py | File | 12.66 KB | 0644 |
|
| re.pyc | File | 12.79 KB | 0644 |
|
| re.pyo | File | 12.79 KB | 0644 |
|
| repr.py | File | 4.2 KB | 0644 |
|
| repr.pyc | File | 5.26 KB | 0644 |
|
| repr.pyo | File | 5.26 KB | 0644 |
|
| rexec.py | File | 19.68 KB | 0644 |
|
| rexec.pyc | File | 23.58 KB | 0644 |
|
| rexec.pyo | File | 23.58 KB | 0644 |
|
| rfc822.py | File | 32.51 KB | 0644 |
|
| rfc822.pyc | File | 31.05 KB | 0644 |
|
| rfc822.pyo | File | 31.05 KB | 0644 |
|
| rlcompleter.py | File | 5.68 KB | 0644 |
|
| rlcompleter.pyc | File | 5.84 KB | 0644 |
|
| rlcompleter.pyo | File | 5.84 KB | 0644 |
|
| robotparser.py | File | 7.03 KB | 0644 |
|
| robotparser.pyc | File | 7.7 KB | 0644 |
|
| robotparser.pyo | File | 7.7 KB | 0644 |
|
| runpy.py | File | 10.45 KB | 0644 |
|
| runpy.pyc | File | 8.21 KB | 0644 |
|
| runpy.pyo | File | 8.21 KB | 0644 |
|
| sched.py | File | 4.97 KB | 0644 |
|
| sched.pyc | File | 4.88 KB | 0644 |
|
| sched.pyo | File | 4.88 KB | 0644 |
|
| sets.py | File | 18.6 KB | 0644 |
|
| sets.pyc | File | 16.5 KB | 0644 |
|
| sets.pyo | File | 16.5 KB | 0644 |
|
| sgmllib.py | File | 17.46 KB | 0644 |
|
| sgmllib.pyc | File | 15.07 KB | 0644 |
|
| sgmllib.pyo | File | 15.07 KB | 0644 |
|
| sha.py | File | 393 B | 0644 |
|
| sha.pyc | File | 421 B | 0644 |
|
| sha.pyo | File | 421 B | 0644 |
|
| shelve.py | File | 7.89 KB | 0644 |
|
| shelve.pyc | File | 10.03 KB | 0644 |
|
| shelve.pyo | File | 10.03 KB | 0644 |
|
| shlex.py | File | 10.88 KB | 0644 |
|
| shlex.pyc | File | 7.37 KB | 0644 |
|
| shlex.pyo | File | 7.37 KB | 0644 |
|
| shutil.py | File | 18.46 KB | 0644 |
|
| shutil.pyc | File | 18.1 KB | 0644 |
|
| shutil.pyo | File | 18.1 KB | 0644 |
|
| site.py | File | 19.61 KB | 0644 |
|
| site.pyc | File | 19.11 KB | 0644 |
|
| site.pyo | File | 19.11 KB | 0644 |
|
| smtpd.py | File | 18.11 KB | 0755 |
|
| smtpd.pyc | File | 15.52 KB | 0644 |
|
| smtpd.pyo | File | 15.52 KB | 0644 |
|
| smtplib.py | File | 30.9 KB | 0755 |
|
| smtplib.pyc | File | 29.29 KB | 0644 |
|
| smtplib.pyo | File | 29.29 KB | 0644 |
|
| sndhdr.py | File | 5.83 KB | 0644 |
|
| sndhdr.pyc | File | 7.18 KB | 0644 |
|
| sndhdr.pyo | File | 7.18 KB | 0644 |
|
| socket.py | File | 20.03 KB | 0644 |
|
| socket.pyc | File | 15.73 KB | 0644 |
|
| socket.pyo | File | 15.64 KB | 0644 |
|
| sre.py | File | 384 B | 0644 |
|
| sre.pyc | File | 519 B | 0644 |
|
| sre.pyo | File | 519 B | 0644 |
|
| sre_compile.py | File | 15.99 KB | 0644 |
|
| sre_compile.pyc | File | 10.76 KB | 0644 |
|
| sre_compile.pyo | File | 10.65 KB | 0644 |
|
| sre_constants.py | File | 6.95 KB | 0644 |
|
| sre_constants.pyc | File | 5.97 KB | 0644 |
|
| sre_constants.pyo | File | 5.97 KB | 0644 |
|
| sre_parse.py | File | 26.84 KB | 0644 |
|
| sre_parse.pyc | File | 18.98 KB | 0644 |
|
| sre_parse.pyo | File | 18.98 KB | 0644 |
|
| ssl.py | File | 36.89 KB | 0644 |
|
| ssl.pyc | File | 31.51 KB | 0644 |
|
| ssl.pyo | File | 31.51 KB | 0644 |
|
| stat.py | File | 1.8 KB | 0644 |
|
| stat.pyc | File | 2.69 KB | 0644 |
|
| stat.pyo | File | 2.69 KB | 0644 |
|
| statvfs.py | File | 898 B | 0644 |
|
| statvfs.pyc | File | 620 B | 0644 |
|
| statvfs.pyo | File | 620 B | 0644 |
|
| string.py | File | 20.27 KB | 0644 |
|
| string.pyc | File | 19.54 KB | 0644 |
|
| string.pyo | File | 19.54 KB | 0644 |
|
| stringold.py | File | 12.16 KB | 0644 |
|
| stringold.pyc | File | 12.25 KB | 0644 |
|
| stringold.pyo | File | 12.25 KB | 0644 |
|
| stringprep.py | File | 13.21 KB | 0644 |
|
| stringprep.pyc | File | 14.15 KB | 0644 |
|
| stringprep.pyo | File | 14.08 KB | 0644 |
|
| struct.py | File | 82 B | 0644 |
|
| struct.pyc | File | 239 B | 0644 |
|
| struct.pyo | File | 239 B | 0644 |
|
| subprocess.py | File | 57.68 KB | 0644 |
|
| subprocess.pyc | File | 40.93 KB | 0644 |
|
| subprocess.pyo | File | 40.93 KB | 0644 |
|
| sunau.py | File | 16.15 KB | 0644 |
|
| sunau.pyc | File | 17.53 KB | 0644 |
|
| sunau.pyo | File | 17.53 KB | 0644 |
|
| sunaudio.py | File | 1.37 KB | 0644 |
|
| sunaudio.pyc | File | 1.94 KB | 0644 |
|
| sunaudio.pyo | File | 1.94 KB | 0644 |
|
| symbol.py | File | 2.01 KB | 0755 |
|
| symbol.pyc | File | 2.96 KB | 0644 |
|
| symbol.pyo | File | 2.96 KB | 0644 |
|
| symtable.py | File | 7.34 KB | 0644 |
|
| symtable.pyc | File | 11.59 KB | 0644 |
|
| symtable.pyo | File | 11.46 KB | 0644 |
|
| sysconfig.py | File | 21.88 KB | 0644 |
|
| sysconfig.pyc | File | 17.23 KB | 0644 |
|
| sysconfig.pyo | File | 17.23 KB | 0644 |
|
| tabnanny.py | File | 11.07 KB | 0755 |
|
| tabnanny.pyc | File | 8.05 KB | 0644 |
|
| tabnanny.pyo | File | 8.05 KB | 0644 |
|
| tarfile.py | File | 87.05 KB | 0644 |
|
| tarfile.pyc | File | 73.39 KB | 0644 |
|
| tarfile.pyo | File | 73.39 KB | 0644 |
|
| telnetlib.py | File | 26.18 KB | 0644 |
|
| telnetlib.pyc | File | 22.53 KB | 0644 |
|
| telnetlib.pyo | File | 22.53 KB | 0644 |
|
| tempfile.py | File | 17.91 KB | 0644 |
|
| tempfile.pyc | File | 19.35 KB | 0644 |
|
| tempfile.pyo | File | 19.35 KB | 0644 |
|
| textwrap.py | File | 16.64 KB | 0644 |
|
| textwrap.pyc | File | 11.62 KB | 0644 |
|
| textwrap.pyo | File | 11.53 KB | 0644 |
|
| this.py | File | 1002 B | 0644 |
|
| this.pyc | File | 1.19 KB | 0644 |
|
| this.pyo | File | 1.19 KB | 0644 |
|
| threading.py | File | 46.28 KB | 0644 |
|
| threading.pyc | File | 41.7 KB | 0644 |
|
| threading.pyo | File | 39.58 KB | 0644 |
|
| timeit.py | File | 11.82 KB | 0644 |
|
| timeit.pyc | File | 11.5 KB | 0644 |
|
| timeit.pyo | File | 11.5 KB | 0644 |
|
| toaiff.py | File | 3.07 KB | 0644 |
|
| toaiff.pyc | File | 3.03 KB | 0644 |
|
| toaiff.pyo | File | 3.03 KB | 0644 |
|
| token.py | File | 2.88 KB | 0755 |
|
| token.pyc | File | 3.73 KB | 0644 |
|
| token.pyo | File | 3.73 KB | 0644 |
|
| tokenize.py | File | 16.15 KB | 0644 |
|
| tokenize.pyc | File | 13.61 KB | 0644 |
|
| tokenize.pyo | File | 13.52 KB | 0644 |
|
| trace.py | File | 29.19 KB | 0644 |
|
| trace.pyc | File | 22.26 KB | 0644 |
|
| trace.pyo | File | 22.2 KB | 0644 |
|
| traceback.py | File | 10.99 KB | 0644 |
|
| traceback.pyc | File | 11.35 KB | 0644 |
|
| traceback.pyo | File | 11.35 KB | 0644 |
|
| tty.py | File | 879 B | 0644 |
|
| tty.pyc | File | 1.29 KB | 0644 |
|
| tty.pyo | File | 1.29 KB | 0644 |
|
| types.py | File | 1.99 KB | 0644 |
|
| types.pyc | File | 2.45 KB | 0644 |
|
| types.pyo | File | 2.45 KB | 0644 |
|
| urllib.py | File | 57.14 KB | 0644 |
|
| urllib.pyc | File | 49.1 KB | 0644 |
|
| urllib.pyo | File | 49 KB | 0644 |
|
| urllib2.py | File | 51.87 KB | 0644 |
|
| urllib2.pyc | File | 46.61 KB | 0644 |
|
| urllib2.pyo | File | 46.52 KB | 0644 |
|
| urlparse.py | File | 15.54 KB | 0644 |
|
| urlparse.pyc | File | 14.73 KB | 0644 |
|
| urlparse.pyo | File | 14.73 KB | 0644 |
|
| user.py | File | 1.59 KB | 0644 |
|
| user.pyc | File | 1.68 KB | 0644 |
|
| user.pyo | File | 1.68 KB | 0644 |
|
| uu.py | File | 6.4 KB | 0755 |
|
| uu.pyc | File | 4.21 KB | 0644 |
|
| uu.pyo | File | 4.21 KB | 0644 |
|
| uuid.py | File | 20.6 KB | 0644 |
|
| uuid.pyc | File | 20.68 KB | 0644 |
|
| uuid.pyo | File | 20.68 KB | 0644 |
|
| warnings.py | File | 13.71 KB | 0644 |
|
| warnings.pyc | File | 12.84 KB | 0644 |
|
| warnings.pyo | File | 12.02 KB | 0644 |
|
| wave.py | File | 17.67 KB | 0644 |
|
| wave.pyc | File | 19 KB | 0644 |
|
| wave.pyo | File | 18.94 KB | 0644 |
|
| weakref.py | File | 10.44 KB | 0644 |
|
| weakref.pyc | File | 13.72 KB | 0644 |
|
| weakref.pyo | File | 13.72 KB | 0644 |
|
| webbrowser.py | File | 22.19 KB | 0644 |
|
| webbrowser.pyc | File | 19.32 KB | 0644 |
|
| webbrowser.pyo | File | 19.27 KB | 0644 |
|
| whichdb.py | File | 3.3 KB | 0644 |
|
| whichdb.pyc | File | 2.19 KB | 0644 |
|
| whichdb.pyo | File | 2.19 KB | 0644 |
|
| wsgiref.egg-info | File | 187 B | 0644 |
|
| xdrlib.py | File | 5.43 KB | 0644 |
|
| xdrlib.pyc | File | 9.07 KB | 0644 |
|
| xdrlib.pyo | File | 9.07 KB | 0644 |
|
| xmllib.py | File | 34.05 KB | 0644 |
|
| xmllib.pyc | File | 26.22 KB | 0644 |
|
| xmllib.pyo | File | 26.22 KB | 0644 |
|
| xmlrpclib.py | File | 50.78 KB | 0644 |
|
| xmlrpclib.pyc | File | 42.89 KB | 0644 |
|
| xmlrpclib.pyo | File | 42.71 KB | 0644 |
|
| zipfile.py | File | 56.45 KB | 0644 |
|
| zipfile.pyc | File | 40.33 KB | 0644 |
|
| zipfile.pyo | File | 40.33 KB | 0644 |
|