From: Armin Ronacher Date: Fri, 26 Jul 2013 14:00:48 +0000 (+0200) Subject: Some documentation updates X-Git-Tag: 1.0~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93a8e893bcb259b7ad54606a7ba9464368057a04;p=thirdparty%2Fbabel.git Some documentation updates --- 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'