Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
d0620ffb
Commit
d0620ffb
authored
Apr 01, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #528 from s-t-e-v-e-n-k/drop-safe-repr
Drop unused safe_repr function
parents
04d10ff0
f4c7a06c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
pkg_resources/tests/test_resources.py
pkg_resources/tests/test_resources.py
+0
-11
No files found.
pkg_resources/tests/test_resources.py
View file @
d0620ffb
...
...
@@ -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"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment