Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0a0f6082
Commit
0a0f6082
authored
Aug 03, 2008
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a dict.has_key() and callable() usage in SimpleXMLRPCServer as triggered
under -3 through test_xmlrpc.
parent
c3ce0e53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/SimpleXMLRPCServer.py
Lib/SimpleXMLRPCServer.py
+2
-2
No files found.
Lib/SimpleXMLRPCServer.py
View file @
0a0f6082
...
...
@@ -141,7 +141,7 @@ def list_public_methods(obj):
return
[
member
for
member
in
dir
(
obj
)
if
not
member
.
startswith
(
'_'
)
and
callable
(
getattr
(
obj
,
member
)
)]
hasattr
(
getattr
(
obj
,
member
),
'__call__'
)]
def
remove_duplicates
(
lst
):
"""remove_duplicates([2,2,2,1,3,3]) => [3,1,2]
...
...
@@ -315,7 +315,7 @@ class SimpleXMLRPCDispatcher:
Returns a string containing documentation for the specified method."""
method
=
None
if
self
.
funcs
.
has_key
(
method_name
)
:
if
method_name
in
self
.
funcs
:
method
=
self
.
funcs
[
method_name
]
elif
self
.
instance
is
not
None
:
# Instance can implement _methodHelp to return help for a method
...
...
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