#251 system message copy() produced TypeError

Default
open
nobody
None
5
2015-09-24
2014-03-13
No

On Python 2.7 with doc 0.11

>>>docutils.nodes.system_message().copy()
system_message: children=()
*** TypeError: __init__() got multiple values for keyword argument 'rawsource'

It seems that copy passes in rawsource:

return self.__class__(rawsource=self.rawsource, **self.attributes)

which contains:

try:
    Element.__init__(self, '', *children, **attributes)
                     #      ^----rawsource

I'm not exactly sure what the proper fix would be without studying the code a bit more.

Discussion

  • Günter Milde

    Günter Milde - 2015-03-11
    • Group: sandbox --> None
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks