diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-06-09 19:44:44 -0700 |
---|---|---|
committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-06-13 07:20:37 -0700 |
commit | 50610283e6d5d43b660c453f20f96f7703f883f7 (patch) | |
tree | 104e7c55d447b23d42e94282e94ec3b6e75c4715 /babel/units.py | |
parent | f35c8fe0091ff20f7ee69e6c163e9a2b187fe1a2 (diff) | |
download | babel-50610283e6d5d43b660c453f20f96f7703f883f7.tar.gz |
Use https URLs throughout project where available
Updated docs and code comments.
Diffstat (limited to 'babel/units.py')
-rw-r--r-- | babel/units.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/babel/units.py b/babel/units.py index 4260b3d..be851c2 100644 --- a/babel/units.py +++ b/babel/units.py @@ -26,7 +26,7 @@ def get_unit_name(measurement_unit, length='long', locale=LC_NUMERIC): :param measurement_unit: the code of a measurement unit. Known units can be found in the CLDR Unit Validity XML file: - http://unicode.org/repos/cldr/tags/latest/common/validity/unit.xml + https://unicode.org/repos/cldr/tags/latest/common/validity/unit.xml :param length: "short", "long" or "narrow" :param locale: the `Locale` object or locale identifier @@ -44,7 +44,7 @@ def _find_unit_pattern(unit_id, locale=LC_NUMERIC): Expand an unit into a qualified form. Known units can be found in the CLDR Unit Validity XML file: - http://unicode.org/repos/cldr/tags/latest/common/validity/unit.xml + https://unicode.org/repos/cldr/tags/latest/common/validity/unit.xml >>> _find_unit_pattern("radian", locale="en") 'angle-radian' @@ -105,7 +105,7 @@ def format_unit(value, measurement_unit, length='long', format=None, locale=LC_N :param value: the value to format. If this is a string, no number formatting will be attempted. :param measurement_unit: the code of a measurement unit. Known units can be found in the CLDR Unit Validity XML file: - http://unicode.org/repos/cldr/tags/latest/common/validity/unit.xml + https://unicode.org/repos/cldr/tags/latest/common/validity/unit.xml :param length: "short", "long" or "narrow" :param format: An optional format, as accepted by `format_decimal`. :param locale: the `Locale` object or locale identifier @@ -219,7 +219,7 @@ def format_compound_unit( >>> format_compound_unit(format_currency(35, "JPY", locale="de"), denominator_unit="liter", locale="de") '35\\xa0\\xa5 pro Liter' - See http://www.unicode.org/reports/tr35/tr35-general.html#perUnitPatterns + See https://www.unicode.org/reports/tr35/tr35-general.html#perUnitPatterns :param numerator_value: The numerator value. This may be a string, in which case it is considered preformatted and the unit is ignored. |