From 93a8e893bcb259b7ad54606a7ba9464368057a04 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Fri, 26 Jul 2013 16:00:48 +0200 Subject: [PATCH] Some documentation updates --- docs/dates.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/dates.rst b/docs/dates.rst index 6cd09a3f..94474f79 100644 --- a/docs/dates.rst +++ b/docs/dates.rst @@ -345,11 +345,10 @@ functions in the ``babel.dates`` module, most importantly the .. code-block:: pycon - >>> from pytz import timezone >>> from babel import Locale - >>> from babel.dates import get_timezone_name + >>> from babel.dates import get_timezone_name, get_timezone - >>> tz = timezone('Europe/Berlin') + >>> tz = get_timezone('Europe/Berlin') >>> get_timezone_name(tz, locale=Locale.parse('pt_PT')) u'Hor\xe1rio Alemanha' @@ -368,4 +367,4 @@ display a list of time-zones to the user. >>> get_timezone_name(dt, locale=Locale.parse('de_DE')) u'Mitteleurop\xe4ische Sommerzeit' >>> get_timezone_name(tz, locale=Locale.parse('de_DE')) - u'Deutschland' + u'Mitteleurop\xe4ische Zeit' -- 2.47.3