Browse Source

Merge #326: Fix F632 use ==/!= to compare str, bytes, and int literals flake8 errors

2db4e23 Fix F632 use ==/!= to compare str, bytes, and int literals flake8 errors (James Hilliard)
master
AdamISZ 7 years ago
parent
commit
4246ef2fcd
No known key found for this signature in database
GPG Key ID: 141001A1AF77F20B
  1. 6
      jmclient/test/test_utxomanager.py
  2. 2
      scripts/obwatch/ob-watcher.py

6
jmclient/test/test_utxomanager.py

@ -81,11 +81,11 @@ def test_utxomanager_select(setup_env_nodeps):
um.add_utxo(txid, index, path, value, mixdepth)
assert len(um.select_utxos(mixdepth, value)) is 1
assert len(um.select_utxos(mixdepth+1, value)) is 0
assert len(um.select_utxos(mixdepth, value)) == 1
assert len(um.select_utxos(mixdepth+1, value)) == 0
um.add_utxo(txid, index+1, path, value, mixdepth)
assert len(um.select_utxos(mixdepth, value)) is 2
assert len(um.select_utxos(mixdepth, value)) == 2
@pytest.fixture

2
scripts/obwatch/ob-watcher.py

@ -212,7 +212,7 @@ class OrderbookPageRequestHeader(http.server.SimpleHTTPRequestHandler):
else:
bins = 30
plt.hist(ordersizes, bins, histtype='bar', rwidth=0.8)
if bins is not 30:
if bins != 30:
fig.axes[0].set_xscale('log')
plt.grid()
plt.xlabel('Order sizes / btc')

Loading…
Cancel
Save