From b01c2d2ad1ebed4533ec39d9370ba76684a9c544 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Fri, 24 Jul 2015 14:44:01 -0400 Subject: [PATCH] fixes stoud formats unicode problem --- awx/lib/site-packages/README | 2 +- awx/lib/site-packages/ansiconv.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/lib/site-packages/README b/awx/lib/site-packages/README index d72e81e327..9e32d8c671 100644 --- a/awx/lib/site-packages/README +++ b/awx/lib/site-packages/README @@ -2,7 +2,7 @@ Local versions of third-party packages required by Tower. Package names and versions are listed below, along with notes on which files are included. amqp==1.4.5 (amqp/*) -ansiconv==1.0.0 (ansiconv.py) +ansiconv==1.0.0 (ansiconv.py, small fix, generate unicode html) anyjson==0.3.3 (anyjson/*) apache-libcloud==0.15.1 (libcloud/*) argparse==1.2.1 (argparse.py, needed for Python 2.6 support) diff --git a/awx/lib/site-packages/ansiconv.py b/awx/lib/site-packages/ansiconv.py index e76448f61a..d0a66df5cd 100644 --- a/awx/lib/site-packages/ansiconv.py +++ b/awx/lib/site-packages/ansiconv.py @@ -122,6 +122,7 @@ def _block_to_html(text): classes.append('ansi{0}'.format(code)) if classes: - text = '{1}'.format(' '.join(classes), text) + text = u'{1}'.format(' '.join(classes), text) return command, text +