Fix to avoid "TypeError: the JSON object must be str, not 'bytes'" error while installing.
Traceback:
curl -sf https://www.getlektor.com/install.sh | sudo sh
Welcome to Lektor
This script will install Lektor on your computer.
Installing at:
bin: /usr/local/bin
app: /usr/local/lib/lektor
Continue? [Yn] y
Traceback (most recent call last):
File "<stdin>", line 142, in <module>
File "<stdin>", line 130, in main
File "/usr/lib/python3.5/json/__init__.py", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
Now that Lektor supports Python 3, we need to document this support.
This change is perhaps a bit extreme: it replaces all explicit
references to Python 2.7 with explicit references to Python 3.5.
However, it's a good start, and it can and should be reviewed before
being merged.