Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

Commit 0207cbc

Browse files
committed
Remove requests dependency
1 parent 2c59955 commit 0207cbc

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

examples/hello_world.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
from pprint import pprint
1212
from sys import argv
1313
from typing import Text
14-
15-
from requests.exceptions import ConnectionError
14+
from httpx.exceptions import NetworkError
1615
from six import text_type
1716

1817
from iota import BadApiResponse, StrictIota, __version__
@@ -24,7 +23,7 @@ def main(uri):
2423

2524
try:
2625
node_info = api.get_node_info()
27-
except ConnectionError as e:
26+
except NetworkError as e:
2827
print(
2928
"Hm. {uri} isn't responding; is the node running?".format(uri=uri)
3029
)

setup.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@
6666
'httpx',
6767
'phx-filters; python_version >= "3.5"',
6868
'pysha3',
69-
70-
# ``security`` extra wasn't introduced until 2.4.1
71-
# http://docs.python-requests.org/en/latest/community/updates/#id35
72-
'requests[security] >= 2.4.1',
7369
'six',
7470
'typing; python_version < "3.0"',
7571
],

0 commit comments

Comments
 (0)