mirror of
https://github.com/python/cpython.git
synced 2025-07-15 15:25:29 +00:00

for the email package. The former is now just a shell project that has some extra files for packaging for independent use (e.g. setup.py and README). Added a compatibility layer so that the same API can be used in Python 2.1 and 2.2/2.3 with the major differences shuffled off into helper modules (_compat21.py and _compat22.py). Also bumped the package version number to 2.0.3 for some fixes to be checked in momentarily.
11 lines
368 B
Python
11 lines
368 B
Python
# 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
|