4.0.0b11修复WebPage()的get_tab()报错

This commit is contained in:
g1879 2023-11-21 17:49:27 +08:00
parent 9d51af46ab
commit 11027b01b2
3 changed files with 4 additions and 3 deletions

View File

@ -13,4 +13,4 @@ from ._configs.chromium_options import ChromiumOptions
from ._configs.session_options import SessionOptions from ._configs.session_options import SessionOptions
__all__ = ['ChromiumPage', 'ChromiumOptions', 'SessionOptions', 'SessionPage', 'WebPage', '__version__'] __all__ = ['ChromiumPage', 'ChromiumOptions', 'SessionOptions', 'SessionPage', 'WebPage', '__version__']
__version__ = '4.0.0b10' __version__ = '4.0.0b11'

View File

@ -411,10 +411,11 @@ class SessionOptions(object):
self._params = session.params self._params = session.params
self._verify = session.verify self._verify = session.verify
self._cert = session.cert self._cert = session.cert
self._adapters = session.adapters
self._stream = session.stream self._stream = session.stream
self._trust_env = session.trust_env self._trust_env = session.trust_env
self._max_redirects = session.max_redirects self._max_redirects = session.max_redirects
if session.adapters:
self._adapters = [(k, i) for k, i in session.adapters.items()]
return self return self
# --------------即将废弃--------------- # --------------即将废弃---------------

View File

@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
setup( setup(
name="DrissionPage", name="DrissionPage",
version="4.0.0b10", version="4.0.0b11",
author="g1879", author="g1879",
author_email="g1879@qq.com", author_email="g1879@qq.com",
description="Python based web automation tool. It can control the browser and send and receive data packets.", description="Python based web automation tool. It can control the browser and send and receive data packets.",