@@ -679,7 +679,7 @@ def iterfind(self, path, namespaces=None):
679679 def write (self , file_or_filename ,
680680 encoding = None ,
681681 xml_declaration = None ,
682- xml_declaration_definition = ' <?xml version=" {version}" encoding=" {encoding}"?>' ,
682+ xml_declaration_definition = " <?xml version=' {version}' encoding=' {encoding}'?>" ,
683683 default_namespace = None ,
684684 method = None , * ,
685685 short_empty_elements = True ):
@@ -700,7 +700,7 @@ def write(self, file_or_filename,
700700 singlequote where hardcoded here.
701701 to be rfc conform which allows doublequotes and
702702 singlequote for declaration. default value is
703- switched to doublquotes here to stay on one format .
703+ untouched to pass tests .
704704 placeholders: {version}, {encoding}
705705
706706 *default_namespace* -- sets the default XML namespace (for "xmlns")
@@ -731,7 +731,7 @@ def write(self, file_or_filename,
731731 # version configuration is'nt necessary, can be overwritten
732732 # in declaration_definition at runtime
733733 data = {'version' :'1.0' , 'encoding' : declared_encoding }
734- write (xml_declaration_definition .format (** data )+ "\n " )
734+ write (xml_declaration_definition .format (** data )+ "\n " )
735735 if method == "text" :
736736 _serialize_text (write , self ._root )
737737 else :
0 commit comments