issue #508: master: minify_safe_re must be bytes for Py3.

pull/564/head
David Wilson 6 years ago
parent fda7d5c276
commit 1d509d03ff

@ -774,7 +774,7 @@ class ModuleResponder(object):
def _make_negative_response(self, fullname): def _make_negative_response(self, fullname):
return (fullname, None, None, None, ()) return (fullname, None, None, None, ())
minify_safe_re = re.compile(r'\s+#\s*!mitogen:\s*minify_safe') minify_safe_re = re.compile(b(r'\s+#\s*!mitogen:\s*minify_safe'))
def _build_tuple(self, fullname): def _build_tuple(self, fullname):
if fullname in self._cache: if fullname in self._cache:

Loading…
Cancel
Save