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
31913cac
Commit
31913cac
authored
Jul 14, 2016
by
Jason R. Coombs
Committed by
GitHub
Jul 14, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #656 from stepshal/unidiomatic-typecheck
Use isinstance() instead of type() for a typecheck.
parents
8e80ee74
c07d0df0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
setuptools/command/upload_docs.py
setuptools/command/upload_docs.py
+1
-1
No files found.
setuptools/command/upload_docs.py
View file @
31913cac
...
@@ -105,7 +105,7 @@ class upload_docs(upload):
...
@@ -105,7 +105,7 @@ class upload_docs(upload):
if
not
isinstance
(
values
,
list
):
if
not
isinstance
(
values
,
list
):
values
=
[
values
]
values
=
[
values
]
for
value
in
values
:
for
value
in
values
:
if
type
(
value
)
is
tuple
:
if
isinstance
(
value
,
tuple
)
:
title
+=
'; filename="%s"'
%
value
[
0
]
title
+=
'; filename="%s"'
%
value
[
0
]
value
=
value
[
1
]
value
=
value
[
1
]
else
:
else
:
...
...
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