summaryrefslogtreecommitdiff
path: root/pecan/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'pecan/core.py')
-rw-r--r--pecan/core.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/pecan/core.py b/pecan/core.py
index 6820fab..c09763d 100644
--- a/pecan/core.py
+++ b/pecan/core.py
@@ -528,13 +528,7 @@ class Pecan(object):
testing_variables['controller_output'] = result
# set the body content
- if six.PY3:
- resp.text = result if isinstance(result, str) else str(
- result,
- 'utf-8',
- 'strict'
- )
- elif isinstance(result, six.text_type):
+ if isinstance(result, six.text_type):
resp.text = result
else:
resp.body = result