From 44ca6938ffd450847810f5c426e9afdbab1fc424 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 29 Jun 2016 10:51:56 -0700 Subject: [PATCH] Add FIXMEs to functemplate about py3 --- beets/util/functemplate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beets/util/functemplate.py b/beets/util/functemplate.py index 2b32971e2..cdccc49a5 100644 --- a/beets/util/functemplate.py +++ b/beets/util/functemplate.py @@ -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.