Révision e2db693c
codecs.getreader ("utf-8") added again
without python3.4 fails
| 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