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

futurize: shebang and # encoding lines are pushed down by a __future__ import #10

Closed
edschofield opened this issue Nov 4, 2013 · 1 comment
Assignees

Comments

@edschofield
Copy link
Contributor

A module beginning with a line like these::

# coding: utf-8
# encoding: utf-8

(the last one as in django-mezzanine) or a script beginning like this::

#!/usr/bin/env python

is currently converted by futurize --stage2 into this::

from __future__ import unicode_literals
# encoding: utf-8

or this::

from __future__ import unicode_literals
#!/usr/bin/env python

This is broken.

@ghost ghost assigned edschofield Nov 4, 2013
@edschofield
Copy link
Contributor Author

Fixed in v0.12.

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

No branches or pull requests

1 participant