Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leading \ in TEMPLATE in fastentrypoints.py #885

Open
coldfix opened this issue Feb 16, 2019 · 0 comments
Open

Leading \ in TEMPLATE in fastentrypoints.py #885

coldfix opened this issue Feb 16, 2019 · 0 comments

Comments

@coldfix
Copy link

coldfix commented Feb 16, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant