Appium-Python-Client 6.0.2__py3-none-any.whl → 6.0.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,7 @@ import subprocess as sp
18
18
  import sys
19
19
  import time
20
20
  from collections.abc import Callable
21
+ from ipaddress import AddressValueError, IPv6Address
21
22
  from typing import Any
22
23
 
23
24
  from selenium.webdriver.remote.remote_connection import urllib3
@@ -318,7 +319,14 @@ def _make_status_path(args: list[str]) -> str:
318
319
 
319
320
 
320
321
  def _make_server_url(args: list[str]) -> str:
321
- return f'{_parse_protocol(args)}://{_parse_host(args)}:{_parse_port(args)}{_make_status_path(args)}'
322
+ host = _parse_host(args)
323
+ try:
324
+ IPv6Address(host)
325
+ except AddressValueError:
326
+ pass
327
+ else:
328
+ host = f'[{host}]'
329
+ return f'{_parse_protocol(args)}://{host}:{_parse_port(args)}{_make_status_path(args)}'
322
330
 
323
331
 
324
332
  if __name__ == '__main__':
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: Appium-Python-Client
3
- Version: 6.0.2
3
+ Version: 6.0.3
4
4
  Summary: Python client for Appium
5
5
  Project-URL: Homepage, https://appium.io/
6
6
  Project-URL: Repository, https://github.com/appium/python-client
@@ -272,7 +272,7 @@ appium/protocols/webdriver/can_execute_scripts.py,sha256=dMRDjreiyV3IJp7-NRUx1Tj
272
272
  appium/protocols/webdriver/can_find_elements.py,sha256=sirq42kVaAnKMbwDDh4CoGIr8B0baEnJQEcJaDpTzmA,1175
273
273
  appium/webdriver/__init__.py,sha256=oT-lIYWpqD562rbXy36HlS03pKfW48BIxqZsqt1XEm0,730
274
274
  appium/webdriver/appium_connection.py,sha256=S-CodDwQWjT-lNwyHSsGtdb4GFHxTM9BXGoOyWdMI94,2405
275
- appium/webdriver/appium_service.py,sha256=LZJ4mlD_1I5iVKi1erRFAqTUf8hHudf7VEgCBGYvTX8,12576
275
+ appium/webdriver/appium_service.py,sha256=K8KUSC1n7z021PvLbTQq1uB2dJEqvGhmOVSjgVFHP3E,12760
276
276
  appium/webdriver/applicationstate.py,sha256=zUPaMt4o4mdAtWP6FapYLJju_tqO6FmMcYFpbFz83dM,735
277
277
  appium/webdriver/client_config.py,sha256=iuVcGsBF9eGNsF_gzs8b6vZWS0iI1u7actaBGBwNrqY,1631
278
278
  appium/webdriver/clipboard_content_type.py,sha256=Tyks8xA2dqvuQGEV4iVYr-iMvB-hsQBEcu8wWBxtJ4M,661
@@ -319,7 +319,7 @@ appium/webdriver/extensions/flutter_integration/__init__.py,sha256=wSUl6yC2TJNla
319
319
  appium/webdriver/extensions/flutter_integration/flutter_commands.py,sha256=FwNqIykRyMAU8-344GTlceBOxLbS-bA9bfGX4iJpHxw,11985
320
320
  appium/webdriver/extensions/flutter_integration/flutter_finder.py,sha256=HH9vGAouJuHzp29Jam_lQGrh67PDq6MxU5Ifewf7C5w,2164
321
321
  appium/webdriver/extensions/flutter_integration/scroll_directions.py,sha256=CkOv7k21SMe-h2-EYSZ6MBKBGTRC1csQ-tuowHgMn0E,85
322
- appium_python_client-6.0.2.dist-info/METADATA,sha256=I6raQ3nZoAMwCLPh69AQLGrsCMNkrhm6R27BD9ViM_4,20932
323
- appium_python_client-6.0.2.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
324
- appium_python_client-6.0.2.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
325
- appium_python_client-6.0.2.dist-info/RECORD,,
322
+ appium_python_client-6.0.3.dist-info/METADATA,sha256=j-x-VpBBrCONqs8KPhEtRB74b451Kw1Nq1JkhiEpQbQ,20932
323
+ appium_python_client-6.0.3.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
324
+ appium_python_client-6.0.3.dist-info/licenses/LICENSE,sha256=QxeKfXNmPWCfFyrXiwdVzMFPFMK0nlBrKhYLUoIcqhk,11384
325
+ appium_python_client-6.0.3.dist-info/RECORD,,