Skip to content
Permalink
Browse files

Plugin btcguild_hashrate_: fix code style issues reported by flake8

  • Loading branch information...
sumpfralle committed Aug 13, 2019
1 parent ba732fd commit 275c82f47957ef86558217e78dba174cbc95dbae
Showing with 3 additions and 5 deletions.
  1. +3 −4 plugins/currency/bitcoin/btcguild_hashrate_
  2. +0 −1 t/test-exception-wrapper.expected-failures
@@ -7,7 +7,7 @@ import urllib2
import json

URL = 'https://www.btcguild.com/api.php?api_key='
API_KEY = sys.argv[0][(sys.argv[0].rfind('_')+1):]
API_KEY = sys.argv[0][(sys.argv[0].rfind('_')+1):]

STATS = URL + API_KEY

@@ -17,8 +17,8 @@ command = ''
if len(sys.argv) > 1:
command = sys.argv[1]

header = {'User-Agent':'Mozilla/5.0'}
request = urllib2.Request(STATS,headers=header)
header = {'User-Agent': 'Mozilla/5.0'}
request = urllib2.Request(STATS, headers=header)
mining_stats_raw = urllib2.urlopen(request)
mining_stats = json.load(mining_stats_raw)
workers = mining_stats['workers']
@@ -38,4 +38,3 @@ for worker in workers:
hash_rate = workers[worker]['hash_rate']
label = workers[worker]['worker_name']
print label + ".value %d" % int(hash_rate)

@@ -58,7 +58,6 @@ plugins/cpu/cpuutil
plugins/cpu/multicpu1sec
plugins/cpu/process_count
plugins/cpu/process_cpushare
plugins/currency/bitcoin/btcguild_hashrate_
plugins/currency/bitcoin/slush_hashrate_
plugins/currency/bitcoin/slush_reward_
plugins/currency/ethereum/ethermine_hashrate_

0 comments on commit 275c82f

Please sign in to comment.
You can’t perform that action at this time.