Skip to content

Leading \ in TEMPLATE in fastentrypoints.py #885

@coldfix

Description

@coldfix

Hey, I just noticed in your fastentrypoints.py that #872 introduced a potential problem with the entrypoint generation:

https://github.com/nvbn/thefuck/blob/master/fastentrypoints.py#L40

It should read:

- TEMPLATE = r'''\
+ TEMPLATE = r'''

and then use .lstrip() or [1:] to correct for the initial newline since the \ escape for line endings doesn't work within raw strings.

Best, Thomas

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