-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
gh-136839: Refactor simple dict.update calls #136811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,12 +47,8 @@ def cleanup_noop(name): | |
# absence of POSIX named semaphores. In that case, no named semaphores were | ||
# ever opened, so no cleanup would be necessary. | ||
if hasattr(_multiprocessing, 'sem_unlink'): | ||
_CLEANUP_FUNCS.update({ | ||
'semaphore': _multiprocessing.sem_unlink, | ||
}) | ||
_CLEANUP_FUNCS.update({ | ||
'shared_memory': _posixshmem.shm_unlink, | ||
}) | ||
_CLEANUP_FUNCS['semaphore'] = _multiprocessing.sem_unlink | ||
_CLEANUP_FUNCS['shared_memory'] = _posixshmem.shm_unlink | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
|
||
class ReentrantCallError(RuntimeError): | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ def __init__(self, master=None, **kw): | |
self.vbar = Scrollbar(self.frame) | ||
self.vbar.pack(side=RIGHT, fill=Y) | ||
|
||
kw.update({'yscrollcommand': self.vbar.set}) | ||
kw['yscrollcommand'] = self.vbar.set | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
Text.__init__(self, self.frame, **kw) | ||
self.pack(side=LEFT, fill=BOTH, expand=True) | ||
self.vbar['command'] = self.yview | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -239,7 +239,7 @@ def register_multicall_functions(self): | |
see http://www.xmlrpc.com/discuss/msgReader$1208""" | ||
|
||
self.funcs.update({'system.multicall' : self.system_multicall}) | ||
self.funcs['system.multicall'] = self.system_multicall | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
def _marshaled_dispatch(self, data, dispatch_method = None, path = None): | ||
"""Dispatches an XML-RPC method from marshalled (XML) data. | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
slots
is a dict here defined in line 1256