##// END OF EJS Templates
bundle2: **strkwargs love on various kwargs constructions...
Augie Fackler -
r36445:247b473f default
parent child Browse files
Show More
@@ -1946,7 +1946,8 b' def handleerrorpushkey(op, inpart):'
1946 1946 value = inpart.params.get(name)
1947 1947 if value is not None:
1948 1948 kwargs[name] = value
1949 raise error.PushkeyFailed(inpart.params['in-reply-to'], **kwargs)
1949 raise error.PushkeyFailed(inpart.params['in-reply-to'],
1950 **pycompat.strkwargs(kwargs))
1950 1951
1951 1952 @parthandler('error:unsupportedcontent', ('parttype', 'params'))
1952 1953 def handleerrorunsupportedcontent(op, inpart):
@@ -1959,7 +1960,7 b' def handleerrorunsupportedcontent(op, in'
1959 1960 if params is not None:
1960 1961 kwargs['params'] = params.split('\0')
1961 1962
1962 raise error.BundleUnknownFeatureError(**kwargs)
1963 raise error.BundleUnknownFeatureError(**pycompat.strkwargs(kwargs))
1963 1964
1964 1965 @parthandler('error:pushraced', ('message',))
1965 1966 def handleerrorpushraced(op, inpart):
@@ -2001,7 +2002,8 b' def handlepushkey(op, inpart):'
2001 2002 for key in ('namespace', 'key', 'new', 'old', 'ret'):
2002 2003 if key in inpart.params:
2003 2004 kwargs[key] = inpart.params[key]
2004 raise error.PushkeyFailed(partid=str(inpart.id), **kwargs)
2005 raise error.PushkeyFailed(partid=str(inpart.id),
2006 **pycompat.strkwargs(kwargs))
2005 2007
2006 2008 @parthandler('bookmarks')
2007 2009 def handlebookmark(op, inpart):
General Comments 0
You need to be logged in to leave comments. Login now