From bebc1e53a3ab059849e5c4e5a55b2f5e68b67169 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 16 Feb 2015 08:25:53 -0500 Subject: [PATCH] Refs #24324 -- Fixed UnicodeDecodeError in template_backends tests The message for the SuspiciousFileOperation exception needs to be a unicode string. --- django/utils/_os.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/utils/_os.py b/django/utils/_os.py index 679b206e18..f5efeab80f 100644 --- a/django/utils/_os.py +++ b/django/utils/_os.py @@ -1,3 +1,5 @@ +from __future__ import unicode_literals + import os import stat import sys