Replace outdated mustache library (#307)
* Change mustache library to Pystache * Remove unneeded importpull/310/head
parent
524c5e0956
commit
b7965564e1
|
@ -16,7 +16,7 @@
|
||||||
# along with Mycroft Core. If not, see <http://www.gnu.org/licenses/>.
|
# along with Mycroft Core. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
import mustache
|
import pystache
|
||||||
import os
|
import os
|
||||||
import random
|
import random
|
||||||
from mycroft.util import log
|
from mycroft.util import log
|
||||||
|
@ -78,7 +78,7 @@ class MustacheDialogRenderer(object):
|
||||||
index = random.randrange(len(template_functions))
|
index = random.randrange(len(template_functions))
|
||||||
else:
|
else:
|
||||||
index %= len(template_functions)
|
index %= len(template_functions)
|
||||||
return mustache.render(template_functions[index], context)
|
return pystache.render(template_functions[index], context)
|
||||||
|
|
||||||
|
|
||||||
class DialogLoader(object):
|
class DialogLoader(object):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
shortuuid==0.4.3
|
shortuuid==0.4.3
|
||||||
mustache==0.1.4
|
pystache==0.5.4
|
||||||
configobj==5.0.6
|
configobj==5.0.6
|
||||||
wikipedia==1.4.0
|
wikipedia==1.4.0
|
||||||
requests==2.8.1
|
requests==2.8.1
|
||||||
|
|
Loading…
Reference in New Issue