Projet

Général

Profil

Révision e2db693c

IDe2db693c0da7d55dcb8a6b3f7a6021293e6ae138
Parent 727fc718
Enfant 8a72386a

Ajouté par Nils il y a plus de 7 ans

codecs.getreader ("utf-8") added again

without python3.4 fails

Voir les différences:

plugins/currency/zcash/zcash_flypool_hashrate_
82 82
    print("Failed to request Flypool API: {}".format(exc), file=sys.stderr)
83 83
    sys.exit(9)
84 84

  
85
reader = codecs.getreader("utf-8")
86

  
85 87
try:
86
    mining_stats = json.load(mining_stats_raw)
88
    mining_stats = json.load(reader(mining_stats_raw))
87 89
except ValueError:
88 90
    print("Failed to parse JSON responce.", file=sys.stderr)
89 91
    sys.exit(9)

Formats disponibles : Unified diff