mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
Comments about __get__ calls
This commit is contained in:
parent
7ce2122e71
commit
f602382244
@ -483,6 +483,8 @@ def exception_to_child(getChild):
|
||||
"""
|
||||
@wraps(getChild)
|
||||
def g(self, name, req):
|
||||
# Bind the method to the instance so it has a better
|
||||
# fullyQualifiedName later on. This is not necessary on Python 3.
|
||||
bound_getChild = getChild.__get__(self, type(self))
|
||||
|
||||
action = start_action(
|
||||
@ -526,6 +528,8 @@ def render_exception(render):
|
||||
"""
|
||||
@wraps(render)
|
||||
def g(self, request):
|
||||
# Bind the method to the instance so it has a better
|
||||
# fullyQualifiedName later on. This is not necessary on Python 3.
|
||||
bound_render = render.__get__(self, type(self))
|
||||
|
||||
action = start_action(
|
||||
|
Loading…
x
Reference in New Issue
Block a user