Skip to content

detect_encoding should fail with SyntaxError on invalid encoding #59195

@florentx

Description

@florentx
mannequin
BPO 14990
Nosy @vstinner, @ezio-melotti, @florentx
PRs
  • bpo-33338: [lib2to3] Synchronize token.py and tokenize.py with stdlib #6572
  • Files
  • issue14990_detect_encoding.diff
  • 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-07-07.10:29:50.995>
    created_at = <Date 2012-06-03.10:29:02.107>
    labels = ['type-bug', 'library', 'expert-unicode']
    title = 'detect_encoding should fail with SyntaxError on invalid encoding'
    updated_at = <Date 2018-04-23.01:09:05.686>
    user = 'https://github.com/florentx'

    bugs.python.org fields:

    activity = <Date 2018-04-23.01:09:05.686>
    actor = 'lukasz.langa'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-07-07.10:29:50.995>
    closer = 'flox'
    components = ['Library (Lib)', 'Unicode']
    creation = <Date 2012-06-03.10:29:02.107>
    creator = 'flox'
    dependencies = []
    files = ['25805']
    hgrepos = []
    issue_num = 14990
    keywords = ['patch']
    message_count = 7.0
    messages = ['162205', '162206', '162303', '162428', '162429', '164811', '164812']
    nosy_count = 4.0
    nosy_names = ['vstinner', 'ezio.melotti', 'flox', 'python-dev']
    pr_nums = ['6572']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue14990'
    versions = ['Python 3.2', 'Python 3.3']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

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

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions