Sha256: aa027f20920447169f110939bbc829a0b8fd55271ad7e6b32c2546e524ae24c1

Contents?: true

Size: 686 Bytes

Versions: 30

Compression:

Stored size: 686 Bytes

Contents

# Copyright (C) 2001,2002 Python Software Foundation
# Author: barry@zope.com (Barry Warsaw)

"""Various types of useful iterators and generators.
"""

import sys

try:
    from email._compat22 import body_line_iterator, typed_subpart_iterator
except SyntaxError:
    # Python 2.1 doesn't have generators
    from email._compat21 import body_line_iterator, typed_subpart_iterator



def _structure(msg, fp=None, level=0):
    """A handy debugging aid"""
    if fp is None:
        fp = sys.stdout
    tab = ' ' * (level * 4)
    print >> fp, tab + msg.get_content_type()
    if msg.is_multipart():
        for subpart in msg.get_payload():
            _structure(subpart, fp, level+1)

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rubyfox-server-2.19.2.0 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.17.3.2 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.17.3.1 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.17.3.0 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.16.3.2 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.16.3.1 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.16.0.4 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.16.0.3 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.16.0.2 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.16.0.1 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.16.0.0 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.13.7.3 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.13.6.2 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.13.6.1 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.13.5.1 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.13.4.1 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.13.3.1 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.12.5.1 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.12.5.0 lib/rubyfox/server/data/lib/Lib/email/Iterators.py
rubyfox-server-2.12.4.0 lib/rubyfox/server/data/lib/Lib/email/Iterators.py