aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-02-21 11:52:31 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-02-21 11:52:31 +0100
commit2811c4d10dfca4002fa89240c3d6fd116e4a6013 (patch)
treedd4991fb36118584f18973f58f1a489b8cd9036f
parentefac6e71b3203bace04f3b13deab4552daf863f3 (diff)
downloadroadmap-2811c4d10dfca4002fa89240c3d6fd116e4a6013.tar.gz
Use encode instead of a lambda function.
Change-Id: I5ea5dcf407fc35fb58f30eb3dff42e2ac5904127
-rw-r--r--roadmap/helpers.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/roadmap/helpers.py b/roadmap/helpers.py
index 13a1584..4508918 100644
--- a/roadmap/helpers.py
+++ b/roadmap/helpers.py
@@ -16,7 +16,6 @@
# along with roadmap. If not, see <http://www.gnu.org/licenses/>.
import logging
-import string
from django.conf import settings
from django.db.models import ManyToManyField
@@ -306,8 +305,7 @@ def create_or_update(issue, options, jira=None):
log.info("Saving card {0}".format(issue.key))
card.save()
- log.debug("Saved {0} - {1}".format(issue.key,
- filter(lambda x: x in string.printable, summary)))
+ log.debug("Saved {0} - {1}".format(issue.key, summary.encode('utf8')))
return card