Fixed a pyflakes issue.

- Legacy-Id: 14536
This commit is contained in:
Henrik Levkowetz 2018-01-17 21:02:36 +00:00
parent 7d5bd3f5d5
commit cbd18ae0ce

View file

@ -365,8 +365,6 @@ def maybe_patch_library(app_configs, **kwargs):
# 'django/db/models/fields/__init__.py'
for patch_file in settings.CHECKS_LIBRARY_PATCHES_TO_APPLY:
patch_path = os.path.join(saved_cwd, patch_file)
with open(patch_path) as f:
p = f.read()
patch_set = patch.fromfile(patch_path)
if patch_set:
if not patch_set.apply():