mirror of https://github.com/django/django.git
Removed unnecessary import in django/utils/autoreload.py.
This commit is contained in:
parent
5d03f2bc01
commit
29240a9952
|
@ -2,7 +2,6 @@ import functools
|
||||||
import itertools
|
import itertools
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import pathlib
|
|
||||||
import signal
|
import signal
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
@ -137,7 +136,7 @@ def iter_modules_and_files(modules, extra_files):
|
||||||
for filename in itertools.chain(sys_file_paths, extra_files):
|
for filename in itertools.chain(sys_file_paths, extra_files):
|
||||||
if not filename:
|
if not filename:
|
||||||
continue
|
continue
|
||||||
path = pathlib.Path(filename)
|
path = Path(filename)
|
||||||
try:
|
try:
|
||||||
resolved_path = path.resolve(strict=True).absolute()
|
resolved_path = path.resolve(strict=True).absolute()
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
|
Loading…
Reference in New Issue