Skip to content

untokenize() fails on tokenize output when a newline is missing #79288

@gpshead

Description

@gpshead
BPO 35107
Nosy @terryjreedy, @gpshead, @taleinat, @meadori, @serhiy-storchaka, @ammaraskar, @pablogsal, @iritkatriel
Superseder
  • bpo-44667: tokenize.py emits spurious NEWLINE if file ends on a comment without a newline
  • 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 2022-01-19.20:50:24.347>
    created_at = <Date 2018-10-29.22:26:38.314>
    labels = ['3.7', '3.8']
    title = 'untokenize() fails on tokenize output when a newline is missing'
    updated_at = <Date 2022-01-19.20:52:55.362>
    user = 'https://github.com/gpshead'

    bugs.python.org fields:

    activity = <Date 2022-01-19.20:52:55.362>
    actor = 'terry.reedy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2022-01-19.20:50:24.347>
    closer = 'terry.reedy'
    components = []
    creation = <Date 2018-10-29.22:26:38.314>
    creator = 'gregory.p.smith'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35107
    keywords = []
    message_count = 9.0
    messages = ['328876', '328878', '328879', '328880', '328882', '328884', '328927', '410915', '410982']
    nosy_count = 8.0
    nosy_names = ['terry.reedy', 'gregory.p.smith', 'taleinat', 'meador.inge', 'serhiy.storchaka', 'ammar2', 'pablogsal', 'iritkatriel']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '44667'
    type = None
    url = 'https://bugs.python.org/issue35107'
    versions = ['Python 3.6', 'Python 3.7', 'Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions