Skip to content

Commit

Permalink
Pacify Python warnings: mark regexes as such.
Browse files Browse the repository at this point in the history
  • Loading branch information
veox committed Nov 16, 2018
1 parent e441e73 commit 9644051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/core/middleware/test_name_to_address_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ def test_fail_name_resolver(w3):
'net_version': '2',
})
w3.middleware_stack.inject(return_chain_on_mainnet, layer=0)
with pytest.raises(InvalidAddress, match='.*ethereum\.eth.*'):
with pytest.raises(InvalidAddress, match=r'.*ethereum\.eth.*'):
w3.eth.getBalance("ethereum.eth")
2 changes: 1 addition & 1 deletion web3/_utils/hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


def hexstr_strategy():
return st.from_regex('\A(0[xX])?[0-9a-fA-F]*\Z')
return st.from_regex(r'\A(0[xX])?[0-9a-fA-F]*\Z')

0 comments on commit 9644051

Please sign in to comment.