mirror of
https://github.com/beetbox/beets.git
synced 2026-01-29 11:35:27 +01:00
Add FIXMEs to functemplate about py3
This commit is contained in:
parent
89c7b78994
commit
44ca6938ff
1 changed files with 2 additions and 2 deletions
|
|
@ -508,7 +508,7 @@ class Template(object):
|
|||
def __init__(self, template):
|
||||
self.expr = _parse(template)
|
||||
self.original = template
|
||||
if six.PY2:
|
||||
if six.PY2: # FIXME Compiler is broken on Python 3.
|
||||
self.compiled = self.translate()
|
||||
|
||||
def __eq__(self, other):
|
||||
|
|
@ -525,7 +525,7 @@ class Template(object):
|
|||
def substitute(self, values={}, functions={}):
|
||||
"""Evaluate the template given the values and functions.
|
||||
"""
|
||||
if six.PY2:
|
||||
if six.PY2: # FIXME As above.
|
||||
try:
|
||||
res = self.compiled(values, functions)
|
||||
except: # Handle any exceptions thrown by compiled version.
|
||||
|
|
|
|||
Loading…
Reference in a new issue