diff options
author | Steve Kowalik <steven@wedontsleep.org> | 2016-04-01 14:43:06 +1100 |
---|---|---|
committer | Steve Kowalik <steven@wedontsleep.org> | 2016-04-01 14:43:06 +1100 |
commit | f4c7a06cc90bed1e1feadd343e5a9fec3433e004 (patch) | |
tree | bd61a71b982f57778c0106659c7c116ec5dc82f0 | |
parent | 04d10ff025e1cbef7ec93a2008c930e856045c8a (diff) | |
download | external_python_setuptools-f4c7a06cc90bed1e1feadd343e5a9fec3433e004.tar.gz external_python_setuptools-f4c7a06cc90bed1e1feadd343e5a9fec3433e004.tar.bz2 external_python_setuptools-f4c7a06cc90bed1e1feadd343e5a9fec3433e004.zip |
Drop unused safe_repr function
When _assertIn was removed from test_resources, the safe_repr
function was not dropped, leaving it with no callers, so drop it.
-rw-r--r-- | pkg_resources/tests/test_resources.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/pkg_resources/tests/test_resources.py b/pkg_resources/tests/test_resources.py index 791d8ee3..98b8dcd7 100644 --- a/pkg_resources/tests/test_resources.py +++ b/pkg_resources/tests/test_resources.py @@ -15,17 +15,6 @@ from pkg_resources import (parse_requirements, VersionConflict, parse_version, WorkingSet) -def safe_repr(obj, short=False): - """ copied from Python2.7""" - try: - result = repr(obj) - except Exception: - result = object.__repr__(obj) - if not short or len(result) < pkg_resources._MAX_LENGTH: - return result - return result[:pkg_resources._MAX_LENGTH] + ' [truncated]...' - - class Metadata(pkg_resources.EmptyProvider): """Mock object to return metadata as if from an on-disk distribution""" |