Closed thefab closed 4 years ago
I revert this as it does not work for the moment because Bytes are not supported in simpleeval :-(
I keep the original work here: https://github.com/metwork-framework/mfdata/pull/245
work done in mfutil (thanks to @moas), we have to update mfutil in mfext and we would be able to unblock this
done
reopen because of #254
this test is mfutil test_eval.py should pass:
def test_bytes_in_variables(self):
self.t("x['foo'].startswith(b'png')", {'x': {'foo': b'png'}}, True)
but we get:
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
closed thanks to @moas patch in mfutil
thanks to @moas