Skip to content

Commit

Permalink
Just moving instead of deprecating
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed May 10, 2024
1 parent 4623f3f commit d3687d8
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions py/selenium/webdriver/common/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,10 @@
# specific language governing permissions and limitations
# under the License.
import typing
import warnings
from abc import ABCMeta
from abc import abstractmethod
from enum import Enum

from typing_extensions import deprecated

from selenium.common.exceptions import InvalidArgumentException
from selenium.webdriver.common.proxy import Proxy

Expand Down Expand Up @@ -437,16 +434,9 @@ def add_argument(self, argument) -> None:
else:
raise ValueError("argument can not be null")

@deprecated("Ignore local proxy in ArgOptions is deprecated, use it from BaseOptions")
def ignore_local_proxy_environment_variables(self) -> None:
"""By calling this you will ignore HTTP_PROXY and HTTPS_PROXY from
being picked up and used."""
warnings.warn(
"using ignore_local_proxy_environment_variables in ArgOptions has been deprecated, "
"instead, use it from BaseOptions",
DeprecationWarning,
stacklevel=2,
)
super()._ignore_local_proxy = True

def to_capabilities(self):
Expand Down

0 comments on commit d3687d8

Please sign in to comment.