Name |
Last commit
|
Last update |
---|---|---|
docs | ||
pipeline | ||
tests | ||
.gitignore | ||
.travis.yml | ||
AUTHORS | ||
CONTRIBUTING.rst | ||
HISTORY.rst | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
tox.ini |
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 |
---|---|---|
docs | Loading commit data... | |
pipeline | Loading commit data... | |
tests | Loading commit data... | |
.gitignore | Loading commit data... | |
.travis.yml | Loading commit data... | |
AUTHORS | Loading commit data... | |
CONTRIBUTING.rst | Loading commit data... | |
HISTORY.rst | Loading commit data... | |
LICENSE | Loading commit data... | |
MANIFEST.in | Loading commit data... | |
README.rst | Loading commit data... | |
requirements.txt | Loading commit data... | |
setup.cfg | Loading commit data... | |
setup.py | Loading commit data... | |
tox.ini | Loading commit data... |