Skip to content

Commit 4c7ad8e

Browse files
committed
remove unused code
1 parent 36ff865 commit 4c7ad8e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

onvif/zeep_aiohttp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(
5454
self.proxy = proxy
5555
self._close_session = False # Never close a provided session
5656
# Extract timeout from session
57-
self._client_timeout = session._timeout
57+
self._client_timeout = session.timeout
5858

5959
async def __aenter__(self) -> AIOHTTPTransport:
6060
"""Enter async context."""

tests/test_zeep_transport.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ def create_mock_session(timeout=None):
1515
mock_session = Mock(spec=aiohttp.ClientSession)
1616
if timeout:
1717
mock_session.timeout = timeout
18-
mock_session._timeout = timeout # Some code accesses private attribute
1918
else:
2019
# Create a default timeout object
2120
default_timeout = Mock(total=300, sock_read=None)
2221
mock_session.timeout = default_timeout
23-
mock_session._timeout = default_timeout # Some code accesses private attribute
2422
return mock_session
2523

2624

0 commit comments

Comments
 (0)