Skip to content

Commit ebf9d1d

Browse files
committed
Fixed a Py2/Py3 issue in patch.py.
- Legacy-Id: 17677
1 parent 9a3f105 commit ebf9d1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ietf/checks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from django.conf import settings
1414
from django.core import checks
1515
from django.utils.module_loading import import_string
16+
from django.utils.encoding import force_str
1617
import ietf.utils.patch as patch
1718

1819
checks_run = [] # type: List[str]
@@ -315,7 +316,7 @@ def maybe_patch_library(app_configs, **kwargs):
315316
"Could not apply patch from file '%s'"%patch_file,
316317
hint=("Make sure that the patch file contains a unified diff and has valid file paths\n\n"
317318
"\tPatch root: %s\n"
318-
"\tTarget files: %s\n") % (library_path, ', '.join(i.target for i in patch_set.items)),
319+
"\tTarget files: %s\n") % (library_path, ', '.join(force_str(i.target) for i in patch_set.items)),
319320
id="datatracker.W0002",
320321
))
321322
else:

0 commit comments

Comments
 (0)