File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -834,12 +834,12 @@ def _to_xml_element(self):
834
834
GIFTI .append (dar ._to_xml_element ())
835
835
return GIFTI
836
836
837
- def to_xml (self , enc = 'utf-8' ) -> bytes :
837
+ def to_xml (self , enc = 'utf-8' , ** kwargs ) -> bytes :
838
838
"""Return XML corresponding to image content"""
839
839
header = b"""<?xml version="1.0" encoding="UTF-8"?>
840
840
<!DOCTYPE GIFTI SYSTEM "http://www.nitrc.org/frs/download.php/115/gifti.dtd">
841
841
"""
842
- return header + super ().to_xml (enc )
842
+ return header + super ().to_xml (enc , ** kwargs )
843
843
844
844
# Avoid the indirection of going through to_file_map
845
845
def to_bytes (self , enc = 'utf-8' ):
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ def _to_xml_element(self):
24
24
"""Output should be a xml.etree.ElementTree.Element"""
25
25
raise NotImplementedError ()
26
26
27
- def to_xml (self , enc = 'utf-8' ):
27
+ def to_xml (self , enc = 'utf-8' , ** kwargs ):
28
28
"""Output should be an xml string with the given encoding.
29
29
(default: utf-8)"""
30
30
ele = self ._to_xml_element ()
31
- return '' if ele is None else tostring (ele , enc )
31
+ return '' if ele is None else tostring (ele , enc , ** kwargs )
32
32
33
33
34
34
class XmlBasedHeader (FileBasedHeader , XmlSerializable ):
You can’t perform that action at this time.
0 commit comments