Use as_text to fix syntax error discovered in Python 3.2 (raspberry pi)

main
Scott Vitale 11 years ago
parent 14932a6662
commit b464c37468

@ -14,7 +14,7 @@ import logging
import os import os
import sys import sys
from .compat import is_python_version from .compat import is_python_version, as_text
def gettermsize(): def gettermsize():
@ -181,7 +181,7 @@ def utcnow():
def utcformat(dt): 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): def utcparse(string):

Loading…
Cancel
Save