diff options
| author | ?ric Araujo <merwok@netwok.org> | 2011-11-23 13:31:27 +0100 |
|---|---|---|
| committer | ?ric Araujo <merwok@netwok.org> | 2011-11-23 13:31:27 +0100 |
| commit | bb11fef9c016c68e89b8a83f1a95206859291d8a (patch) | |
| tree | 17a428f0c69143d3a8130c1b984da94264024227 /distutils2/create.py | |
| parent | 5bf02c43b4e6e8e8a23bb4b5269200b66ecfc4f2 (diff) | |
| download | disutils2-bb11fef9c016c68e89b8a83f1a95206859291d8a.tar.gz | |
Better separate compat and _backport.
This moves individual backported functions from compat into a new
_backport.misc module. compat regains its original purpose of
containing 2to3 support code (i.e. compat for projects using distutils2,
not internal compat for d2 code) and all backports now live under the
private _backport subnamespace.
Also fix the definition of ?any? to bind it to the builtin in 2.5+
(fsencode and detect_encoding not changed, they never exist in
2.x).
Diffstat (limited to 'distutils2/create.py')
| -rw-r--r-- | distutils2/create.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/distutils2/create.py b/distutils2/create.py index d0c9477..5ad4563 100644 --- a/distutils2/create.py +++ b/distutils2/create.py @@ -31,13 +31,9 @@ from distutils2 import logger # importing this with an underscore as it should be replaced by the # dict form or another structures for all purposes from distutils2._trove import all_classifiers as _CLASSIFIERS_LIST -from distutils2.compat import detect_encoding from distutils2.version import is_valid_version from distutils2._backport import shutil, sysconfig -try: - any -except NameError: - from distutils2.compat import any +from distutils2._backport.misc import any, detect_encoding try: from hashlib import md5 except ImportError: |
