Skip to content

crlf.py script from Tools doesn't work with Python 3.2 #56903

Closed

Description

@bialix
mannequin
BPO 12694
Superseder
  • bpo-12032: Tools/Scripts/crlf.py needs updating for python 3+
  • 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 2011-08-05.18:27:53.370>
    created_at = <Date 2011-08-05.09:29:01.027>
    labels = []
    title = "crlf.py script from Tools doesn't work with Python 3.2"
    updated_at = <Date 2011-08-05.18:27:53.369>
    user = 'https://bugs.python.org/bialix'

    bugs.python.org fields:

    activity = <Date 2011-08-05.18:27:53.369>
    actor = 'r.david.murray'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-08-05.18:27:53.370>
    closer = 'r.david.murray'
    components = []
    creation = <Date 2011-08-05.09:29:01.027>
    creator = 'bialix'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 12694
    keywords = []
    message_count = 1.0
    messages = ['141650']
    nosy_count = 1.0
    nosy_names = ['bialix']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '12032'
    type = None
    url = 'https://bugs.python.org/issue12694'
    versions = ['Python 3.2']

    Activity

    1. bialix commented on Aug 5, 2011

      bialixmannequin
      MannequinAuthor

      Attempt to use crlf.py script from standard windows install always fail with traceback:

      C:\Python32\Tools\Scripts>C:\Python32\python.exe crlf.py 2to3.py
      Traceback (most recent call last):
        File "crlf.py", line 23, in <module>
          main()
        File "crlf.py", line 12, in main
          if '\0' in data:
      TypeError: Type str doesn't support the buffer API

      C:\Python32\Tools\Scripts>C:\Python32\python.exe -V
      Python 3.2

    2. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No labels
      No labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions