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
4f8c328a
Commit
4f8c328a
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
eb7a701d
Changes
1
Hide 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 @
4f8c328a
...
@@ -59,12 +59,7 @@ def maybeWarnDeprecated(ob, method_name):
...
@@ -59,12 +59,7 @@ def maybeWarnDeprecated(ob, method_name):
if
getattr
(
getattr
(
ob
,
method_name
),
'__five_method__'
,
False
):
if
getattr
(
getattr
(
ob
,
method_name
),
'__five_method__'
,
False
):
# Method knows it's deprecated
# Method knows it's deprecated
return
return
ob_type
=
type
(
ob
)
if
isinstance
(
ob
,
tuple
(
deprecatedManageAddDeleteClasses
)):
# Quick check for directly deprecated classes
if
ob_type
in
deprecatedManageAddDeleteClasses
:
return
if
any
(
issubclass
(
ob_type
,
cls
)
for
cls
in
deprecatedManageAddDeleteClasses
):
return
return
class_
=
ob
.
__class__
class_
=
ob
.
__class__
LOG
.
debug
(
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