squash! [myedenred] Fix parsing in JsUserPage

This version of the code was provided by ntome in
https://paste.budget-insight.com/paste/hQBYvYmA#DkTC2Mn8FLF0+MOuJ374c0qb+z-vk7rXtHHop+qaOXq.
12 jobs for myedenred-fix-json in 18 minutes and 52 seconds (queued for 5 minutes and 7 seconds)
latest
Status Job ID Name Coverage
  Build
passed #27400
build:3

00:02:21

 
  Test
failed #27408
allowed to fail
lint:3

00:02:37

failed #27401
pyflakes:3

00:02:42

passed #27405
strict-continuations:3

00:02:35

passed #27402
strict-flake8:3

00:02:34

passed #27403
strict-ifexpr:3

00:02:27

passed #27407
strict-line-length:3

00:02:49

passed #27404
strict-stringcut:3

00:02:38

passed #27406
strict-trailing-commas:3

00:02:42

passed #27409
unittests:3

00:02:47

failed #27410
allowed to fail
unittests-modules:3

00:08:39

 
  Deploy
skipped #27411
doc:3
 
Name Stage Failure
failed
unittests-modules:3 Test
-----------------------------------------------------------------------
TOTAL 68286 38615 43%
----------------------------------------------------------------------
Ran 369 tests in 388.755s

FAILED (SKIP=111, errors=125, failures=32)
=== Total coverage ===
MODULES COVERAGE: 43%
ERROR: Job failed: exit code 1
failed
lint:3 Test
$ ./tools/weboob_lint.sh
=== [ 0%] Getting file:///builds/DamienCassou/weboob/modules
=== [100%] All modules are up-to-date.
WARNING:modules:could not load module codimd: Module requires Weboob 1.6, but you use Weboob 2.1. Hint: use 'weboob-config update'

Modules without tests: afer, ameli, amundi, april, banqueaccord, bforbank, bnpcards, bolden, bouygues, bp, caels, chronopost, cmb, cmso, colisprive, colissimo, degiro, edf, ensap, franceconnect, free, genericnewspaper, gmf, hellobank, impotsgouvfrpar, lendosphere, linebourse, lucca, materielnet, metalarchives, n26, nalo, netfinca, okc, oney, onlinenet, orange, ovh, pagesjaunes, peertube, redmine, relaiscolis, serebii, sogecartenet, swile, tapatalk, ticketscesu, wiseed, yomoni

Modules without icons: avendrealouer, aviva, bnpcards, bnppere, bolden, btpbanque, capeasi, cesu, cices, cmes, deathbycaptcha, degiro, ekwateur, ensap, erehsbc, esalia, franceconnect, free, gmf, hellobank, impotsgouvfrpar, lendosphere, linebourse, lucca, materielnet, meslieuxparis, metalarchives, nalo, netfinca, onlinenet, pradoepargne, serebii, sogecartenet, swile, tapatalk, themisbanque, ticketscesu, trainline, wiseed
ERROR: Job failed: exit code 1
failed
pyflakes:3 Test
  Created wheel for googleapis-common-protos: filename=googleapis_common_protos-1.51.0-py3-none-any.whl size=77592 sha256=2209508a1dd17a3af29c63eedb9e85314833febac10c55e03d4bcdf811f459f3
Stored in directory: /root/.cache/pip/wheels/0d/81/d7/c82ed88e8977ef82d567716c51defc3fd8775c78fa5c4efc7b
Successfully built simplejson feedparser googleapis-common-protos
Installing collected packages: simplejson, pyasn1, ecdsa, rsa, python-jose, feedparser, geographiclib, geopy, cachetools, pyasn1-modules, google-auth, httplib2, google-auth-httplib2, protobuf, googleapis-common-protos, google-api-core, uritemplate, google-api-python-client, pycryptodomex, selenium, xlrd
Successfully installed cachetools-4.1.0 ecdsa-0.15 feedparser-5.2.1 geographiclib-1.50 geopy-1.21.0 google-api-core-1.17.0 google-api-python-client-1.8.2 google-auth-1.14.2 google-auth-httplib2-0.0.3 googleapis-common-protos-1.51.0 httplib2-0.17.3 protobuf-3.11.3 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycryptodomex-3.9.7 python-jose-3.1.0 rsa-4.0 selenium-3.141.0 simplejson-3.17.0 uritemplate-3.0.1 xlrd-1.2.0
$ ./tools/pyflakes.sh
modules/myedenred/pages.py:176: print(result)
Error: Use of print in modules is forbidden, use logger instead
ERROR: Job failed: exit code 1