Show More
@@ -112,7 +112,7 b' class remoteiterbatcher(peer.iterbatcher' | |||||
112 |
|
112 | |||
113 | for command, args, opts, finalfuture in self.calls: |
|
113 | for command, args, opts, finalfuture in self.calls: | |
114 | mtd = getattr(self._remote, command) |
|
114 | mtd = getattr(self._remote, command) | |
115 |
batchable = mtd.batchable(mtd. |
|
115 | batchable = mtd.batchable(mtd.__self__, *args, **opts) | |
116 |
|
116 | |||
117 | commandargs, fremote = next(batchable) |
|
117 | commandargs, fremote = next(batchable) | |
118 | assert fremote |
|
118 | assert fremote |
@@ -19,7 +19,7 b" testlockname = 'testlock'" | |||||
19 | # work around http://bugs.python.org/issue1515 |
|
19 | # work around http://bugs.python.org/issue1515 | |
20 | if types.MethodType not in copy._deepcopy_dispatch: |
|
20 | if types.MethodType not in copy._deepcopy_dispatch: | |
21 | def _deepcopy_method(x, memo): |
|
21 | def _deepcopy_method(x, memo): | |
22 |
return type(x)(x. |
|
22 | return type(x)(x.__func__, copy.deepcopy(x.__self__, memo), x.im_class) | |
23 | copy._deepcopy_dispatch[types.MethodType] = _deepcopy_method |
|
23 | copy._deepcopy_dispatch[types.MethodType] = _deepcopy_method | |
24 |
|
24 | |||
25 | class lockwrapper(lock.lock): |
|
25 | class lockwrapper(lock.lock): |
General Comments 0
You need to be logged in to leave comments.
Login now