summaryrefslogtreecommitdiff
path: root/sphinx/util/requests.py
Commit message (Collapse)AuthorAgeFilesLines
* A happy new year!Takeshi KOMIYA2021-01-011-1/+1
| | | | | | | .. note:: $ find sphinx tests LICENSE doc/conf.py -type f -exec sed -i '' -e 's/2007\-20../2007-2021/' {} \; $ git co sphinx/locale/**/*.js sphinx/templates/epub3/mimetype
* linkcheck: Remove call to is_ssl_error()François Freitag2020-11-121-0/+5
| | | | | | | | This method always returns False, it is dead code. The exception checking stopped working because Requests library wraps SSL errors in a `requests.exceptions.SSLError` and no longer throws an `urllib3.exceptions.SSLError`. The first argument to that exception is an `urllib3.exceptions.MaxRetryError`.
* Fix #7691: linkcheck: HEAD requests are not used for checkingTakeshi KOMIYA2020-07-101-1/+1
| | | | sphinx.util.requests:head() sends a GET requests instead of HEAD...
* Merge branch '2.0'Takeshi KOMIYA2020-01-011-5/+5
|\
| * A happy new year!Takeshi KOMIYA2020-01-011-1/+1
| |
| * mypy: Enable disallow_incomplete_defs flag for type checkingTakeshi KOMIYA2019-12-301-4/+4
| |
* | Merge branch '2.0'Takeshi KOMIYA2019-11-171-2/+21
|\ \ | |/
| * Close #1331: Change default User-Agent headerTakeshi KOMIYA2019-10-271-2/+21
| |
* | Merge branch 'master' into pkg-resourceTakeshi KOMIYA2019-06-131-10/+0
|\ \
| * | Remove unused import of InsecurePlatformWarningJon Dufresne2019-06-121-10/+0
| |/ | | | | | | Unused since 77e0139a26a080e5b7c0292ebd08fbb2eb540be9.
* | Remove empty code block in sphinx.util.requestsJon Dufresne2019-06-121-13/+0
|/ | | | | | | | Empty since 19a187cb5443808c284dd9e8f85ad13cba98182b. If requests is installed with the security extras, they will be loaded automatically by requests. The is no need to proactively load it. The block simply did a "pass" in all cases.
* Migrate to py3 style type annotation: sphinx.util.requestsTakeshi KOMIYA2019-06-041-14/+8
|
* Merge branch '1.8'Takeshi KOMIYA2019-01-021-1/+1
|\
| * A happy new year!Takeshi KOMIYA2019-01-021-1/+1
| |
* | Merge pull request #5786 from tk0miya/requests-2.5Takeshi KOMIYA2018-12-181-7/+0
|\ \ | | | | | | Update deps: requests-2.5.0 or above
| * | Update deps: requests-2.5.0 or aboveTakeshi KOMIYA2018-12-161-7/+0
| | |
* | | Merge pull request #5509 from stephenfin/remove-future-importsTakeshi KOMIYA2018-12-171-2/+0
|\ \ \ | | | | | | | | Remove future imports
| * | | py3: Remove (most) __future__ importsStephen Finucane2018-12-171-2/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were two used: - print_function - absolute_import Both of these are mandatory in Python 3.0 onwards [1] and can therefore be removed...mostly. Unfortunately, mypy is still running in Python 2.7 mode, meaning we need the 'print_function' future wherever we're calling 'print' with the 'file' argument. There's also a single 'absolute_import' future that must be retained as its removal breaks a test for as-yet unknown reasons. TODOs are added to resolve both issues in the future. [1] https://docs.python.org/3/library/__future__.html Signed-off-by: Stephen Finucane <stephen@that.guru>
* | | Remove unnecessary encoding cookie from Python source filesJon Dufresne2018-12-161-1/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3, the default encoding of source files is utf-8. The encoding cookie is now unnecessary and redundant so remove it. For more details, see the docs: https://docs.python.org/3/howto/unicode.html#the-string-type > The default encoding for Python source code is UTF-8, so you can > simply include a Unicode character in a string literal ... Includes a fix for the flake8 header checks to stop expecting an encoding cookie.
* | Replace all "unicode" type by "str"Takeshi KOMIYA2018-12-151-4/+3
| |
* | Remove warnings for old python which does not support SNITakeshi KOMIYA2018-12-151-12/+2
| |
* | Add sphinx.util.typing:unicode to help mypy-3 migrationTakeshi KOMIYA2018-11-241-0/+1
| |
* | Replace six.string_types with native strJon Dufresne2018-11-211-2/+1
| |
* | Remove use six.move moduleTakeshi KOMIYA2018-11-121-1/+1
|/
* Fix mypy violationsTakeshi KOMIYA2018-09-181-2/+2
|
* Revert "Use typing.TYPE_CHECKING for typehints"Takeshi KOMIYA2018-03-131-2/+2
| | | | This reverts commit a073e17537c2aacaac305feadea58d4473ec97f4.
* Use typing.TYPE_CHECKING for typehintsTakeshi KOMIYA2018-02-141-2/+2
|
* Use flake8-import-orderTakeshi KOMIYA2018-01-281-2/+2
|
* Merge branch 'happy_new_year' into masterTakeshi KOMIYA2018-01-011-1/+1
|\
| * A happy new year!Takeshi KOMIYA2018-01-011-1/+1
| |
* | TypoTony Narlock2017-10-171-1/+1
|/
* Update type annotations for new mypyTakeshi KOMIYA2017-05-071-1/+1
|
* Fix mypy violationsTakeshi KOMIYA2017-04-251-1/+1
|
* Merge branch 'stable' into 1.6-releaseTakeshi KOMIYA2017-04-251-2/+12
|\
| * Fix #3614: Sphinx crashes with requests-2.5.0Takeshi KOMIYA2017-04-081-2/+12
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-03-261-1/+1
|\ \ | |/
| * Year++Takeshi KOMIYA2017-03-261-1/+1
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-03-181-17/+21
|\ \ | |/
| * Allow running Sphinx without sslJeroen Demeyer2017-03-151-17/+21
| |
* | Fix mypy violationsTakeshi KOMIYA2017-02-081-1/+11
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-01-291-11/+26
|\ \ | |/
| * Support requests-2.0.0 (experimental) (refs: #3367)Takeshi KOMIYA2017-01-291-11/+26
| |
* | Update type annotationsTakeshi KOMIYA2017-01-091-1/+1
| |
* | Merge branch 'stable'Takeshi KOMIYA2017-01-071-1/+6
|\ \ | |/
| * Fix #3268: Sphinx crashes with requests package from Debian jessieTakeshi KOMIYA2017-01-071-1/+6
| |
* | Merge branch 'stable'Takeshi KOMIYA2016-12-121-1/+2
|\ \ | |/
| * Fix #3205: sphinx.util.requests crashes with old pyOpenSSL (< 0.14)Takeshi KOMIYA2016-12-111-1/+2
| |
* | Update type annotationTakeshi KOMIYA2016-12-031-1/+1
|/
* Fix #3095: Add tls_verify and tls_cacerts to support self-signed serversTakeshi KOMIYA2016-11-171-1/+59
|
* Fix #3008: ``linkcheck`` builder ignores self-signed certificate URLTakeshi KOMIYA2016-10-061-0/+12
|