Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
dc7f7cf7
Commit
dc7f7cf7
authored
Jun 24, 2010
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize further by letting isinstance do the heavy lifting in C.
Also makes the intent clearer.
parent
888831d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
src/OFS/subscribers.py
src/OFS/subscribers.py
+1
-6
No files found.
src/OFS/subscribers.py
View file @
dc7f7cf7
...
...
@@ -59,12 +59,7 @@ def maybeWarnDeprecated(ob, method_name):
if
getattr
(
getattr
(
ob
,
method_name
),
'__five_method__'
,
False
):
# Method knows it's deprecated
return
ob_type
=
type
(
ob
)
# Quick check for directly deprecated classes
if
ob_type
in
deprecatedManageAddDeleteClasses
:
return
if
any
(
issubclass
(
ob_type
,
cls
)
for
cls
in
deprecatedManageAddDeleteClasses
):
if
isinstance
(
ob
,
tuple
(
deprecatedManageAddDeleteClasses
)):
return
class_
=
ob
.
__class__
LOG
.
debug
(
...
...
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