Replace outdated mustache library (#307)

* Change mustache library to Pystache

* Remove unneeded import
pull/310/head
Ethan Ward 2016-07-28 10:15:43 -05:00 committed by isaacnward
parent 524c5e0956
commit b7965564e1
2 changed files with 3 additions and 3 deletions

View File

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

View File

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