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
b700b361
Commit
b700b361
authored
Sep 09, 2016
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Account for the class might be old style on Python 2.
parent
2a7a7179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
setuptools/monkey.py
setuptools/monkey.py
+2
-1
No files found.
setuptools/monkey.py
View file @
b700b361
...
...
@@ -8,6 +8,7 @@ import platform
import
types
from
.py26compat
import
import_module
from
setuptools.extern
import
six
import
setuptools
...
...
@@ -21,7 +22,7 @@ if you think you need this functionality.
def
get_unpatched
(
item
):
lookup
=
(
get_unpatched_class
if
isinstance
(
item
,
type
)
else
get_unpatched_class
if
isinstance
(
item
,
six
.
class_types
)
else
get_unpatched_function
if
isinstance
(
item
,
types
.
FunctionType
)
else
lambda
item
:
None
)
...
...
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