Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper authored and kclowes committed Apr 3, 2019
1 parent 4d634a6 commit 814c3c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tests/core/filtering/test_contract_getLogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,15 @@ def test_contract_getLogs_argument_filter(
assert len(all_logs) == 4

# Filter all entries where arg1 in (1, 2)
partial_logs = contract.events.LogTripleWithIndex.getLogs(fromBlock=1,
partial_logs = contract.events.LogTripleWithIndex.getLogs(
fromBlock=1,
argument_filters={'arg1': [1, 2]},
)
assert len(partial_logs) == 2

# Filter all entries where arg0 == 1
partial_logs = contract.events.LogTripleWithIndex.getLogs(fromBlock=1,
partial_logs = contract.events.LogTripleWithIndex.getLogs(
fromBlock=1,
argument_filters={'arg0': 1},
)
assert len(partial_logs) == 4
4 changes: 2 additions & 2 deletions web3/contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,8 +1133,8 @@ def getLogs(self,
blknum_set = fromBlock is not None or toBlock is not None
if blkhash_set and blknum_set:
raise ValidationError(
'blockHash cannot be set at the same'
' time as fromBlock or toBlock')
'blockHash cannot be set at the same'
' time as fromBlock or toBlock')

# Construct JSON-RPC raw filter presentation based on human readable Python descriptions
# Namely, convert event names to their keccak signatures
Expand Down

0 comments on commit 814c3c0

Please sign in to comment.