summaryrefslogtreecommitdiffstats
path: root/Lib/email/Iterators.py
blob: a6ddceb053d751c44cb5c72010418014672e0ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Copyright (C) 2001,2002 Python Software Foundation
# Author: barry@zope.com (Barry Warsaw)

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

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