Skip to content
Snippets Groups Projects
Commit eb49c80e authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix YAML+Jinja Unicode handling

parent af7e65b2
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@ from django.conf import settings
import re
import datetime
import six
from django.utils.timezone import now
from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured
......@@ -119,6 +120,9 @@ JINJA_YAML_RE = re.compile(
def expand_yaml_macros(repo, commit_sha, yaml_str):
if isinstance(yaml_str, six.binary_type):
yaml_str = yaml_str.decode("utf-8")
def compute_replacement(match):
jinja_src = match.group(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment