diff --git a/newsfragments/2772.internal.rst b/newsfragments/2772.internal.rst new file mode 100644 index 0000000000..9fff076ef3 --- /dev/null +++ b/newsfragments/2772.internal.rst @@ -0,0 +1 @@ +Rename the newly-split ``eth`` module files to match convention. \ No newline at end of file diff --git a/web3/eth/__init__.py b/web3/eth/__init__.py index 7526a177e1..e8422167f2 100644 --- a/web3/eth/__init__.py +++ b/web3/eth/__init__.py @@ -1,10 +1,10 @@ from .async_eth import ( # noqa: F401 AsyncEth, ) -from .base import ( # noqa: F401 +from .base_eth import ( # noqa: F401 BaseEth, ) -from .main import ( # noqa: F401 +from .eth import ( # noqa: F401 Eth, Contract, ) diff --git a/web3/eth/async_eth.py b/web3/eth/async_eth.py index ae243799bd..5c8f19df2d 100644 --- a/web3/eth/async_eth.py +++ b/web3/eth/async_eth.py @@ -37,7 +37,7 @@ AsyncContract, AsyncContractCaller, ) -from web3.eth.base import ( +from web3.eth.base_eth import ( BaseEth, ) from web3.exceptions import ( diff --git a/web3/eth/base.py b/web3/eth/base_eth.py similarity index 100% rename from web3/eth/base.py rename to web3/eth/base_eth.py diff --git a/web3/eth/main.py b/web3/eth/eth.py similarity index 99% rename from web3/eth/main.py rename to web3/eth/eth.py index 642ad532af..2c41177ddb 100644 --- a/web3/eth/main.py +++ b/web3/eth/eth.py @@ -53,7 +53,7 @@ Contract, ContractCaller, ) -from web3.eth.base import ( +from web3.eth.base_eth import ( BaseEth, ) from web3.exceptions import (