Skip to content

Commit

Permalink
remove parity and trinity refs in IPCProvider docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pacrob committed Jun 2, 2023
1 parent 1782f7d commit 955e10c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
21 changes: 5 additions & 16 deletions docs/providers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -168,23 +168,12 @@ IPCProvider
>>> from web3 import Web3
>>> w3 = Web3(Web3.IPCProvider("~/Library/Ethereum/geth.ipc"))
If no ``ipc_path`` is specified, it will use the first IPC file
it can find from this list:
If no ``ipc_path`` is specified, it will use a default depending on your operating
system.

- On Linux and FreeBSD:

- ``~/.ethereum/geth.ipc``
- ``~/.local/share/io.parity.ethereum/jsonrpc.ipc``
- ``~/.local/share/trinity/mainnet/ipcs-eth1/jsonrpc.ipc``
- On Mac OS:

- ``~/Library/Ethereum/geth.ipc``
- ``~/Library/Application Support/io.parity.ethereum/jsonrpc.ipc``
- ``~/.local/share/trinity/mainnet/ipcs-eth1/jsonrpc.ipc``
- On Windows:

- ``\\\.\pipe\geth.ipc``
- ``\\\.\pipe\jsonrpc.ipc``
- On Linux and FreeBSD: ``~/.ethereum/geth.ipc``
- On Mac OS: ``~/Library/Ethereum/geth.ipc``
- On Windows: ``\\\.\pipe\geth.ipc``


WebsocketProvider
Expand Down
1 change: 1 addition & 0 deletions newsfragments/2971.docs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed references to defunct providers in `IPCProvider` docs
4 changes: 0 additions & 4 deletions web3/providers/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,6 @@ def get_dev_ipc_path() -> Optional[str]:
if os.path.exists(ipc_path):
return ipc_path

ipc_path = os.path.join("\\\\", ".", "pipe", "jsonrpc.ipc")
if os.path.exists(ipc_path):
return ipc_path

else:
raise ValueError(
f"Unsupported platform '{sys.platform}'. Only darwin/linux/win32/"
Expand Down

0 comments on commit 955e10c

Please sign in to comment.