Skip to content

ElementTree.write() raises TypeError when xml_declaration = True and encoding is a unicode string #60015

@DavidBuxton

Description

@DavidBuxton
BPO 15811
Nosy @amauryfa, @florentx
Files
  • xml_declaration_test.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2012-10-15.12:55:57.132>
    created_at = <Date 2012-08-29.13:18:39.556>
    labels = ['expert-XML', 'type-bug', 'library']
    title = 'ElementTree.write() raises TypeError when xml_declaration = True and encoding is a unicode string'
    updated_at = <Date 2012-10-15.12:55:57.130>
    user = 'https://bugs.python.org/DavidBuxton'

    bugs.python.org fields:

    activity = <Date 2012-10-15.12:55:57.130>
    actor = 'eli.bendersky'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-10-15.12:55:57.132>
    closer = 'eli.bendersky'
    components = ['Library (Lib)', 'XML']
    creation = <Date 2012-08-29.13:18:39.556>
    creator = 'David.Buxton'
    dependencies = []
    files = ['27046']
    hgrepos = []
    issue_num = 15811
    keywords = ['patch']
    message_count = 6.0
    messages = ['169373', '169391', '169392', '169395', '169396', '172966']
    nosy_count = 4.0
    nosy_names = ['amaury.forgeotdarc', 'eli.bendersky', 'flox', 'David.Buxton']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue15811'
    versions = ['Python 2.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytopic-XMLtype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions