You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the example from the documentation for minimizing JavaScript:
>>> import vbuild
>>> js="""async function mymethod(...a) {
... var f=(...a) => {let b=12}
... }
... """
>>> min=vbuild.minimize(js)
Results in the following error:
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/vbuild.py", line 59, in jsminOnline
r = json.loads( response.read() )
File "/usr/lib/python3.5/json/__init__.py", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.5/dist-packages/vbuild.py", line 43, in minimize
return jsminOnline(code)
File "/usr/local/lib/python3.5/dist-packages/vbuild.py", line 63, in jsminOnline
raise VBuildException("minimize error: %s" % e)
vbuild.VBuildException: minimize error: the JSON object must be str, not 'bytes'
The text was updated successfully, but these errors were encountered:
Running the example from the documentation for minimizing JavaScript:
Results in the following error:
The text was updated successfully, but these errors were encountered: