misplaced-future / W0410#
Message emitted:
__future__ import is not the first non docstring statement
Description:
Python 2.5 and greater require __future__ import to be the first non docstring statement in the module.
Correct code:
from __future__ import print_function
import sys
Problematic code:
import sys
from __future__ import print_function # [misplaced-future]
Created by the imports checker.