TypeError: wrapped_note() takes exactly 1 argument (2 given)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Plugin to Update Remote Trees |
Confirmed
|
High
|
Unassigned |
Bug Description
push_and_update wraps trace.note() by wrapped_note(), with a prototype of
def wrapped_note(msg):
But this is wrong, because trace.note() has a prototype of
def note(msg, *args, **kwargs):
This causes the plugin to throw a TypeError exception in some cases. A traceback is below.
The fix is simple. I'm attaching a patch here, which also incorporates the patch in bug #360521.
$ bzr push
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/EPA/usr/
return the_callable(*args, **kwargs)
File "/EPA/usr/
ret = run(*run_argv)
File "/EPA/usr/
return self.run(
File "/EPA/usr/
return self._operation
File "/EPA/usr/
return _do_with_cleanups(
File "/EPA/usr/
result = func(*args, **kwargs)
File "/home/
return builtins.
File "/EPA/usr/
more_
File "/EPA/usr/
result = unbound(self, *args, **kwargs)
File "/EPA/usr/
trace.
TypeError: wrapped_warning() takes exactly 1 argument (2 given)
bzr 2.2b3 on python 2.4.3 (Linux-
arguments: ['/EPA/
encoding: 'ISO-8859-1', fsenc: 'ISO-8859-1', lang: 'en_US'
plugins:
bash_completion /EPA/usr/
bisect /EPA/usr/
bzrtools /EPA/usr/
launchpad /EPA/usr/
netrc_
news_merge /EPA/usr/
otisecho /EPA/usr/
pager /home/CEPApqk/
permissions /EPA/usr/
push_and_update /home/CEPApqk/
xmloutput /EPA/usr/
Changed in bzr-push-and-update: | |
importance: | Undecided → High |
status: | New → Confirmed |