Fixed a Py2/Py3 issue in patch.py.

- Legacy-Id: 17677
This commit is contained in:
Henrik Levkowetz 2020-04-23 04:15:08 +00:00
parent 9a3f1059e1
commit ebf9d1d32c

View file

@ -13,6 +13,7 @@ debug.debug = True
from django.conf import settings
from django.core import checks
from django.utils.module_loading import import_string
from django.utils.encoding import force_str
import ietf.utils.patch as patch
checks_run = [] # type: List[str]
@ -315,7 +316,7 @@ def maybe_patch_library(app_configs, **kwargs):
"Could not apply patch from file '%s'"%patch_file,
hint=("Make sure that the patch file contains a unified diff and has valid file paths\n\n"
"\tPatch root: %s\n"
"\tTarget files: %s\n") % (library_path, ', '.join(i.target for i in patch_set.items)),
"\tTarget files: %s\n") % (library_path, ', '.join(force_str(i.target) for i in patch_set.items)),
id="datatracker.W0002",
))
else: