Skip to content

Commit

Permalink
Fix flake8: E402 module level import not at top of file
Browse files Browse the repository at this point in the history
Also sort imports.
  • Loading branch information
blueyed committed Feb 8, 2015
1 parent 7c84e7f commit 55f5ddd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pytest_django/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
test database and provides some useful text fixtures.
"""

import os

import contextlib
import os
import sys
import types

import py
import pytest
import types

from .django_compat import is_django_unittest
from .fixtures import (_django_db_setup, _live_server_helper, admin_client,
Expand Down Expand Up @@ -62,9 +63,6 @@ def pytest_addoption(parser):
'Python path.',
default=True)

import py
import sys


def _exists(path, ignore=EnvironmentError):
try:
Expand Down

0 comments on commit 55f5ddd

Please sign in to comment.