Merge pull request #364 from svvitale/master

Use as_text to fix syntax error discovered in Python 3.2 (raspberry pi)
main
Vincent Driessen 11 years ago
commit 1c486cb07d

@ -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