From 605544193ae26637daec6416b93883f7ddabd181 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Mon, 13 Jan 2025 13:40:23 +0200 Subject: [PATCH] Replace dead or insecure links --- README.rst | 2 +- babel/core.py | 6 +++--- babel/dates.py | 2 +- babel/numbers.py | 2 +- contrib/babel.js | 4 ++-- docs/_templates/sidebar-links.html | 6 +++--- docs/_themes/babel/layout.html | 2 +- docs/_themes/babel/static/babel.css_t | 2 +- docs/messages.rst | 4 ++-- scripts/dump_data.py | 4 ++-- scripts/dump_global.py | 4 ++-- scripts/import_cldr.py | 4 ++-- tests/messages/test_catalog.py | 4 ++-- tests/messages/test_checkers.py | 4 ++-- tests/messages/test_extract.py | 4 ++-- tests/messages/test_frontend.py | 4 ++-- tests/messages/test_mofile.py | 4 ++-- tests/messages/test_plurals.py | 4 ++-- tests/messages/test_pofile.py | 4 ++-- tests/test_core.py | 4 ++-- tests/test_dates.py | 4 ++-- tests/test_localedata.py | 4 ++-- tests/test_numbers.py | 4 ++-- tests/test_plural.py | 4 ++-- tests/test_support.py | 4 ++-- tests/test_util.py | 4 ++-- 26 files changed, 49 insertions(+), 49 deletions(-) diff --git a/README.rst b/README.rst index c708f9da..290223cc 100644 --- a/README.rst +++ b/README.rst @@ -9,7 +9,7 @@ Details can be found in the HTML files in the ``docs`` folder. For more information please visit the Babel web site: -http://babel.pocoo.org/ +https://babel.pocoo.org/ Join the chat at https://gitter.im/python-babel/babel diff --git a/babel/core.py b/babel/core.py index d03be0d9..39a2cf6e 100644 --- a/babel/core.py +++ b/babel/core.py @@ -583,7 +583,7 @@ class Locale: >>> Locale('de', 'DE').languages['ja'] u'Japanisch' - See `ISO 639 `_ for + See `ISO 639 `_ for more information. """ return self._data['languages'] @@ -595,7 +595,7 @@ class Locale: >>> Locale('en', 'US').scripts['Hira'] u'Hiragana' - See `ISO 15924 `_ + See `ISO 15924 `_ for more information. """ return self._data['scripts'] @@ -607,7 +607,7 @@ class Locale: >>> Locale('es', 'CO').territories['DE'] u'Alemania' - See `ISO 3166 `_ + See `ISO 3166 `_ for more information. """ return self._data['territories'] diff --git a/babel/dates.py b/babel/dates.py index 740e8495..98dd3f04 100644 --- a/babel/dates.py +++ b/babel/dates.py @@ -1946,7 +1946,7 @@ def match_skeleton(skeleton: str, options: Iterable[str], allow_different_fields # TODO: maybe implement pattern expansion? # Based on the implementation in - # http://source.icu-project.org/repos/icu/icu4j/trunk/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java + # https://github.com/unicode-org/icu/blob/main/icu4j/main/core/src/main/java/com/ibm/icu/text/DateIntervalInfo.java # Filter out falsy values and sort for stability; when `interval_formats` is passed in, there may be a None key. options = sorted(option for option in options if option) diff --git a/babel/numbers.py b/babel/numbers.py index 701e288e..6d334918 100644 --- a/babel/numbers.py +++ b/babel/numbers.py @@ -165,7 +165,7 @@ def get_currency_precision(currency: str) -> int: def get_currency_unit_pattern( - currency: str, + currency: str, # TODO: unused?! count: float | decimal.Decimal | None = None, locale: Locale | str | None = None, ) -> str: diff --git a/contrib/babel.js b/contrib/babel.js index b1ad341d..0cd4666a 100644 --- a/contrib/babel.js +++ b/contrib/babel.js @@ -6,11 +6,11 @@ * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms - * are also available at http://babel.edgewall.org/wiki/License. + * are also available at https://github.com/python-babel/babel/blob/master/LICENSE. * * This software consists of voluntary contributions made by many * individuals. For the exact contribution history, see the revision - * history and logs, available at http://babel.edgewall.org/log/. + * history and logs, available at https://github.com/python-babel/babel/commits/master/. */ /** diff --git a/docs/_templates/sidebar-links.html b/docs/_templates/sidebar-links.html index 71d11b85..e71dec48 100644 --- a/docs/_templates/sidebar-links.html +++ b/docs/_templates/sidebar-links.html @@ -3,12 +3,12 @@ You can download the documentation in other formats as well:

Useful Links

    -
  • Babel Website
  • +
  • Babel Website
  • Babel @ PyPI
  • Babel @ github
  • Issue Tracker
  • diff --git a/docs/_themes/babel/layout.html b/docs/_themes/babel/layout.html index 1fd054ea..fd2f0205 100644 --- a/docs/_themes/babel/layout.html +++ b/docs/_themes/babel/layout.html @@ -19,7 +19,7 @@ {%- block footer %} {% if pagename == 'index' %} diff --git a/docs/_themes/babel/static/babel.css_t b/docs/_themes/babel/static/babel.css_t index bd1a1cdf..04b11582 100644 --- a/docs/_themes/babel/static/babel.css_t +++ b/docs/_themes/babel/static/babel.css_t @@ -15,7 +15,7 @@ @import url("basic.css"); -@import url(http://fonts.googleapis.com/css?family=Bree+Serif); +@import url(://fonts.googleapis.com/css?family=Bree+Serif); /* -- page layout ----------------------------------------------------------- */ diff --git a/docs/messages.rst b/docs/messages.rst index 3ac03560..aeb23123 100644 --- a/docs/messages.rst +++ b/docs/messages.rst @@ -80,7 +80,7 @@ languages (for whatever reason). Therefore the way in which messages are extracted from source files can not only depend on the file extension, but needs to be controllable in a precise manner. -.. _`Jinja2`: http://jinja.pocoo.org/ +.. _`Jinja2`: https://jinja.pocoo.org/ .. _`Genshi`: https://genshi.edgewall.org/ Babel accepts a configuration file to specify this mapping of files to @@ -265,7 +265,7 @@ extraction. extraction function directly. But whenever possible, the entry point should be declared to make configuration more convenient. -.. _`setuptools`: http://peak.telecommunity.com/DevCenter/setuptools +.. _`setuptools`: https://setuptools.pypa.io/en/latest/setuptools.html ------------------- diff --git a/scripts/dump_data.py b/scripts/dump_data.py index 639c14d4..1d738347 100755 --- a/scripts/dump_data.py +++ b/scripts/dump_data.py @@ -5,11 +5,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. from optparse import OptionParser from pprint import pprint diff --git a/scripts/dump_global.py b/scripts/dump_global.py index e03fc027..edb42fed 100755 --- a/scripts/dump_global.py +++ b/scripts/dump_global.py @@ -5,11 +5,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import os import pickle diff --git a/scripts/import_cldr.py b/scripts/import_cldr.py index 2ab8d0bf..7e5cdbab 100755 --- a/scripts/import_cldr.py +++ b/scripts/import_cldr.py @@ -5,11 +5,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import collections import logging diff --git a/tests/messages/test_catalog.py b/tests/messages/test_catalog.py index 2df85deb..244d832a 100644 --- a/tests/messages/test_catalog.py +++ b/tests/messages/test_catalog.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import copy import datetime diff --git a/tests/messages/test_checkers.py b/tests/messages/test_checkers.py index b2dc9dc4..6d87b742 100644 --- a/tests/messages/test_checkers.py +++ b/tests/messages/test_checkers.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import unittest from datetime import datetime diff --git a/tests/messages/test_extract.py b/tests/messages/test_extract.py index bcc6aa47..a9b2d117 100644 --- a/tests/messages/test_extract.py +++ b/tests/messages/test_extract.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import codecs import sys diff --git a/tests/messages/test_frontend.py b/tests/messages/test_frontend.py index b05f9f68..e42d903a 100644 --- a/tests/messages/test_frontend.py +++ b/tests/messages/test_frontend.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import logging import os import re diff --git a/tests/messages/test_mofile.py b/tests/messages/test_mofile.py index 7a699041..9b27a203 100644 --- a/tests/messages/test_mofile.py +++ b/tests/messages/test_mofile.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import os import unittest diff --git a/tests/messages/test_plurals.py b/tests/messages/test_plurals.py index e9f8e80f..33e08ad7 100644 --- a/tests/messages/test_plurals.py +++ b/tests/messages/test_plurals.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import pytest from babel import Locale diff --git a/tests/messages/test_pofile.py b/tests/messages/test_pofile.py index 9d430736..51b9ef70 100644 --- a/tests/messages/test_pofile.py +++ b/tests/messages/test_pofile.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import unittest from datetime import datetime diff --git a/tests/test_core.py b/tests/test_core.py index 8aa21b4c..f51eedb9 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import pytest diff --git a/tests/test_dates.py b/tests/test_dates.py index 6c0a7ab1..bc6107f3 100644 --- a/tests/test_dates.py +++ b/tests/test_dates.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import calendar from datetime import date, datetime, time, timedelta diff --git a/tests/test_localedata.py b/tests/test_localedata.py index 721b91fb..4a167846 100644 --- a/tests/test_localedata.py +++ b/tests/test_localedata.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import os import pickle diff --git a/tests/test_numbers.py b/tests/test_numbers.py index e64fcfb7..cf0e8d1b 100644 --- a/tests/test_numbers.py +++ b/tests/test_numbers.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import decimal import unittest diff --git a/tests/test_plural.py b/tests/test_plural.py index b10ccf5a..0e58a422 100644 --- a/tests/test_plural.py +++ b/tests/test_plural.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import decimal import unittest diff --git a/tests/test_support.py b/tests/test_support.py index 65147210..44d5afb1 100644 --- a/tests/test_support.py +++ b/tests/test_support.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import datetime import inspect diff --git a/tests/test_util.py b/tests/test_util.py index c661894c..c51bab23 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -4,11 +4,11 @@ # # This software is licensed as described in the file LICENSE, which # you should have received as part of this distribution. The terms -# are also available at http://babel.edgewall.org/wiki/License. +# are also available at https://github.com/python-babel/babel/blob/master/LICENSE. # # This software consists of voluntary contributions made by many # individuals. For the exact contribution history, see the revision -# history and logs, available at http://babel.edgewall.org/log/. +# history and logs, available at https://github.com/python-babel/babel/commits/master/. import __future__ -- 2.47.2