Name |
Last commit
|
Last update |
---|---|---|
.. | ||
compilers | ||
compressors | ||
jinja2 | ||
templates/pipeline | ||
templatetags | ||
__init__.py | ||
conf.py | ||
exceptions.py | ||
finders.py | ||
glob.py | ||
manifest.py | ||
middleware.py | ||
models.py | ||
packager.py | ||
signals.py | ||
storage.py | ||
utils.py |
The current code inserts bytes into a string. In Python 3 those are different types, causing the URI to look like: url("data:image/png;charset=utf-8;base64,b'iVBORw0KGgoAAAANSUhEUgAAAA...'") Because Base64 data is always ASCII it is safe to decode it as such, and insert the resulting string, which causes the correct output: url("data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAA...")
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
compilers | Loading commit data... | |
compressors | Loading commit data... | |
jinja2 | Loading commit data... | |
templates/pipeline | Loading commit data... | |
templatetags | Loading commit data... | |
__init__.py | Loading commit data... | |
conf.py | Loading commit data... | |
exceptions.py | Loading commit data... | |
finders.py | Loading commit data... | |
glob.py | Loading commit data... | |
manifest.py | Loading commit data... | |
middleware.py | Loading commit data... | |
models.py | Loading commit data... | |
packager.py | Loading commit data... | |
signals.py | Loading commit data... | |
storage.py | Loading commit data... | |
utils.py | Loading commit data... |