Skip to content

Commit 55f5ddd

Browse files
committed
Fix flake8: E402 module level import not at top of file
Also sort imports.
1 parent 7c84e7f commit 55f5ddd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pytest_django/plugin.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
test database and provides some useful text fixtures.
55
"""
66

7-
import os
8-
97
import contextlib
8+
import os
9+
import sys
10+
import types
1011

12+
import py
1113
import pytest
12-
import types
1314

1415
from .django_compat import is_django_unittest
1516
from .fixtures import (_django_db_setup, _live_server_helper, admin_client,
@@ -62,9 +63,6 @@ def pytest_addoption(parser):
6263
'Python path.',
6364
default=True)
6465

65-
import py
66-
import sys
67-
6866

6967
def _exists(path, ignore=EnvironmentError):
7068
try:

0 commit comments

Comments
 (0)