Skip to content

Commit

Permalink
Update marcxml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronhelton authored Aug 8, 2017
1 parent 8affc58 commit c3d2d83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymarc/marcxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ def parse_xml_to_array(xml_file, strict=False, normalize_form=None):
parse_xml(xml_file, handler)
return handler.records

def record_to_xml(record, quiet=False, namespace=False):
def record_to_xml(record, quiet=False, namespace=False, encoding='us-ascii'):
node = record_to_xml_node(record, quiet, namespace)
return ET.tostring(node)
return ET.tostring(node, encoding=encoding)

def record_to_xml_node(record, quiet=False, namespace=False):
"""
Expand Down

0 comments on commit c3d2d83

Please sign in to comment.