table_index += 1
addr = 0
line_incr = 0
-
+
labels = findlabels(code)
n = len(code)
i = 0
from types import UnicodeType
def _is_unicode(x):
return isinstance(x, UnicodeType)
-
+
from email.Encoders import encode_7or8bit
import email.base64MIME
import email.quopriMIME
def _unquotevalue(value):
if isinstance(value, TupleType):
- return (value[0], value[1], Utils.unquote(value[2]))
+ return (value[0], value[1], Utils.unquote(value[2]))
else:
- return Utils.unquote(value)
+ return Utils.unquote(value)
-\f
+ \f
class Message:
"""Basic message object for use inside the object tree.
# boundary.
separator = '--' + boundary
payload = fp.read()
- # We use an RE here because boundaries can have trailing
+ # We use an RE here because boundaries can have trailing
# whitespace.
mo = re.search(
r'(?P<sep>' + re.escape(separator) + r')(?P<ws>[ \t]*)',
terminator = len(payload)
# We split the textual payload on the boundary separator, which
# includes the trailing newline. If the container is a
- # multipart/digest then the subparts are by default message/rfc822
- # instead of text/plain. In that case, they'll have a optional
- # block of MIME headers, then an empty line followed by the
+ # multipart/digest then the subparts are by default message/rfc822
+ # instead of text/plain. In that case, they'll have a optional
+ # block of MIME headers, then an empty line followed by the
# message headers.
parts = re.split(
linesep + re.escape(separator) + r'[ \t]*' + linesep,
payload[start:terminator])
for part in parts:
- if isdigest:
+ if isdigest:
if part[0] == linesep:
# There's no header block so create an empty message
# object as the container, and lop off the newline so
class StreamWriter(Codec,codecs.StreamWriter):
pass
-
+
class StreamReader(Codec,codecs.StreamReader):
pass
if len(line) > 0 and line[0] != '#':
self.onecmd(line)
- # Override Bdb methods
+ # Override Bdb methods
def user_call(self, frame, argument_list):
"""This method is called when there is the remote possibility
wordchars="._" + string.ascii_letters + string.digits):
# Usage of ascii_letters is necessary to avoid UnicodeErrors
# if chars contains non-ASCII.
-
+
# XXX - This needs to be moved to a better place
# so the "." attribute lookup code can also use it.
text = self.text
"installation. The file may not display correctly" % name,
master = self.text)
enc = None
-
+
if enc:
try:
return unicode(chars, enc)
def __init__(self, editwin):
if not editwin.runnable:
self.menudefs = []
- self.keydefs = {}
+ self.keydefs = {}
self.editwin = editwin
# Provide instance variables referenced by Debugger
# XXX This should be done differently