From b464c374684d6a66a7d1e413c1fb0634e51e21f3 Mon Sep 17 00:00:00 2001 From: Scott Vitale Date: Sun, 15 Jun 2014 16:58:01 +0000 Subject: [PATCH] Use as_text to fix syntax error discovered in Python 3.2 (raspberry pi) --- rq/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rq/utils.py b/rq/utils.py index 1f8a4b1..d85235e 100644 --- a/rq/utils.py +++ b/rq/utils.py @@ -14,7 +14,7 @@ import logging import os import sys -from .compat import is_python_version +from .compat import is_python_version, as_text def gettermsize(): @@ -181,7 +181,7 @@ def utcnow(): def utcformat(dt): - return dt.strftime(u'%Y-%m-%dT%H:%M:%SZ') + return dt.strftime(as_text('%Y-%m-%dT%H:%M:%SZ')) def utcparse(string):