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:
parent
2b9e9b752c
commit
c81bdfec99
8 changed files with 41 additions and 11 deletions
|
@ -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 = []
|
||||
|
||||
|
|
|
@ -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 = []
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
from __future__ import unicode_literals
|
||||
# don't convert to ascii in py2.7 when creating string to return
|
||||
|
||||
crontable = []
|
||||
outputs = []
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue