1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
From: Samuel Freilich <sfreilich@google.com>
Date: Fri, 3 Jun 2022 13:37:33 -0400
Subject: Deduplicate doc for context param
The documentation for Browser.set_ca_param documents the context parameter twice. This prunes the redundancy.
---
mechanize/_useragent.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/mechanize/_useragent.py b/mechanize/_useragent.py
index 0375b6d..057940e 100644
--- a/mechanize/_useragent.py
+++ b/mechanize/_useragent.py
@@ -251,11 +251,11 @@ class UserAgentBase(_opener.OpenerDirector):
Set the SSL Context used for connecting to SSL servers.
This method accepts the same arguments as the
- :py:meth:`ssl.SSLContext.load_verify_locations()` method from the
- python standard library. You can also pass a pre-built context via the
- `context` keyword argument. Note that to use this feature, you must be
- using python >= 2.7.9. In addition you can directly pass in
- a pre-built :class:`ssl.SSLContext` as the `context` argument.
+ :py:meth:`ssl.SSLContext.load_verify_locations()` method from
+ the Python standard library. You can also pass a pre-built
+ :class:`ssl.SSLContext` via the `context` keyword argument.
+ Note that to use this feature, you must be using Python >=
+ 2.7.9.
'''
import ssl
|