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
91afe3b3
Commit
91afe3b3
authored
Dec 08, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid errors when metadata directory is broken. Ref #419.
parent
434d573a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CHANGES.txt
CHANGES.txt
+2
-0
pkg_resources/__init__.py
pkg_resources/__init__.py
+1
-1
No files found.
CHANGES.txt
View file @
91afe3b3
...
...
@@ -9,6 +9,8 @@ CHANGES
* Issue #471: Don't rely on repr for an HTML attribute value in
package_index.
* Issue #419: Avoid errors in FileMetadata when the metadata directory
is broken.
------
18.7.1
...
...
pkg_resources/__init__.py
View file @
91afe3b3
...
...
@@ -2017,7 +2017,7 @@ class FileMetadata(EmptyProvider):
self
.
path
=
path
def
has_metadata
(
self
,
name
):
return
name
==
'PKG-INFO'
return
name
==
'PKG-INFO'
and
os
.
path
.
isfile
(
self
.
path
)
def
get_metadata
(
self
,
name
):
if
name
==
'PKG-INFO'
:
...
...
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