Fix unicode error in py2.7 for example plugin

Strings should now be passed to the plugins as unicode values in py2.7
so we have to make sure that we don't convert those into ascii by using
python str instead of u'' strings.
This commit is contained in:
Jeff Ammons 2016-06-05 13:28:28 -07:00
parent 2b9e9b752c
commit c81bdfec99
8 changed files with 41 additions and 11 deletions

View file

@ -1,3 +1,6 @@
from __future__ import unicode_literals
# don't convert to ascii in py2.7 when creating string to return
import time
outputs = []

View file

@ -1,3 +1,6 @@
from __future__ import unicode_literals
# don't convert to ascii in py2.7 when creating string to return
import time
crontable = []
outputs = []

View file

@ -1,3 +1,6 @@
from __future__ import unicode_literals
# don't convert to ascii in py2.7 when creating string to return
crontable = []
outputs = []

View file

@ -1,4 +1,7 @@
from __future__ import print_function
from __future__ import unicode_literals
# don't convert to ascii in py2.7 when creating string to return
import os
import pickle