reindent.py inserts spaces in multiline literals

Abierto
#57,139 22 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
tooling

Línea de trabajo

Start with reindent.py and the attached test_reindent.py, then compare testfile-original.py, testfile-expected.py, and testfile-issue.py to understand the multiline-literal case. Run the existing reindent tests and confirm that fixing the behavior preserves literal contents without inserting spaces.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

3.10 3.8 (EOL) 3.9 (EOL) build type-bug
BPO 12930
Nosy @serwy, @merwok, @dimaqq, @serhiy-storchaka
Dependencies
  • bpo-13447: Add tests for some scripts in Tools/scripts
  • Files
  • caioromao-fix-12930-v4.patch
  • bug12930-testfiles.tgz: test
  • testfile-original.py
  • testfile-expected.py
  • testfile-issue.py
  • tab_test.py
  • save_strings.patch: Patch which replaces tab characters in strings with '\t'
  • issue12930.patch
  • test_reindent.py
  • 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 = None
    created_at = <Date 2011-09-07.14:29:37.117>
    labels = ['type-bug', '3.8', '3.9', '3.10']
    title = 'reindent.py inserts spaces in multiline literals'
    updated_at = <Date 2020-10-26.00:05:12.927>
    user = 'https://github.com/dimaqq'
    

    bugs.python.org fields:

    activity = <Date 2020-10-26.00:05:12.927>
    actor = 'Dima.Tisnek'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Demos and Tools']
    creation = <Date 2011-09-07.14:29:37.117>
    creator = 'Dima.Tisnek'
    dependencies = ['13447']
    files = ['23194', '23195', '23500', '23501', '23502', '24074', '24120', '27366', '27367']
    hgrepos = []
    issue_num = 12930
    keywords = ['patch']
    message_count = 22.0
    messages = ['143679', '143715', '143718', '143999', '144291', '144313', '144314', '144321', '146112', '146169', '146209', '146212', '146213', '148063', '150064', '150425', '150426', '171678', '171679', '171682', '171685', '379621']
    nosy_count = 6.0
    nosy_names = ['roger.serwy', 'eric.araujo', 'Dima.Tisnek', 'Caio.Romao', 'Jonathan.Rogers', 'serhiy.storchaka']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue12930'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']
    

    Lenguaje dominante
    Python
    Estrellas
    77.2k
    Forks
    36k
    Merge medio
    1 d 9 h
    PR fusionados (30 d)
    558

    Guía de contribución

    Abrir la guía de contribución

    Primeros pasos

    1. Lee el issue completo y luego la guía de contribución del proyecto.
    2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
    3. Haz un fork del repositorio y trabaja en una rama.
    4. Abre un pull request que haga referencia al número del issue.

    Más de python/cpython

    Todos los issues de python/cpython

    Issues similares

    Más issues de Python

    Recibe los nuevos issues en tu correo

    Un resumen breve de issues de GitHub para principiantes.