Skip to content

futurize should insert *after* initial comment lines #121

Closed
@hayd

Description

@hayd

For example if I have a file like:

#### MODULE
# -*- coding: utf-8 -*-
# Author: etc. with some unicode Ÿ.
...

Currently futurize adds import above hence breaking the python import (since it's no longer correctly encoded):

from __future__ import division
#### MODULE
# -*- coding: utf-8 -*-   # this is no longer recognized, hence the module can not be imported
....

I think future should insert after initial comments (but before the first non-comment line).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions