From 7b343ecbfde7a4d225edd718909c4925fe279d14 Mon Sep 17 00:00:00 2001 From: Adam Chainz Date: Sat, 18 Jun 2016 09:28:31 +0100 Subject: [PATCH] Convert readthedocs links for their .org -> .io migration for hosted projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’: > Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard. Test Plan: Manually visited all the links I’ve modified. --- extractors/cache.py | 2 +- extractors/tesseract.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extractors/cache.py b/extractors/cache.py index 547e901..68ab01e 100644 --- a/extractors/cache.py +++ b/extractors/cache.py @@ -6,7 +6,7 @@ except ImportError: import pickle -# consider https://dogpilecache.readthedocs.org/en/latest +# consider https://dogpilecache.readthedocs.io/en/latest # also: locking :) log = logging.getLogger(__name__) CACHE_DIR = os.environ.get('EXTRACTORS_CACHE_DIR') diff --git a/extractors/tesseract.py b/extractors/tesseract.py index bb62754..9eee777 100644 --- a/extractors/tesseract.py +++ b/extractors/tesseract.py @@ -12,8 +12,8 @@ from extractors.constants import _get_languages from extractors.cache import set_cache, get_cache -# https://tesserwrap.readthedocs.org/en/latest/# -# https://pillow.readthedocs.org/en/3.0.x/reference/Image.html +# https://tesserwrap.readthedocs.io/en/latest/# +# https://pillow.readthedocs.io/en/3.0.x/reference/Image.html log = logging.getLogger(__name__) TESSDATA_PREFIX = os.environ.get('TESSDATA_PREFIX') PDFTOPPM_BIN = os.environ.get('PDFTOPPM_BIN', 'pdftoppm')