@@ -329,7 +329,7 @@ def to_user_timezone(datetime):
329329 """Convert a datetime object to the user's timezone. This automatically
330330 happens on all date formatting unless rebasing is disabled. If you need
331331 to convert a :class:`datetime.datetime` object at any time to the user's
332- timezone (as returned by :func:`get_timezone` this function can be used) .
332+ timezone (as returned by :func:`get_timezone`) this function can be used.
333333 """
334334 if datetime .tzinfo is None :
335335 datetime = datetime .replace (tzinfo = UTC )
@@ -355,7 +355,7 @@ def format_datetime(datetime=None, format=None, rebase=True):
355355 time.
356356
357357 The format parameter can either be ``'short'``, ``'medium'``,
358- ``'long'`` or ``'full'`` (in which cause the language's default for
358+ ``'long'`` or ``'full'`` (in which case the language's default for
359359 that setting is used, or the default from the :attr:`Babel.date_formats`
360360 mapping is used) or a format string as documented by Babel.
361361
@@ -375,7 +375,7 @@ def format_date(date=None, format=None, rebase=True):
375375 of a :class:`~datetime.datetime` object.
376376
377377 The format parameter can either be ``'short'``, ``'medium'``,
378- ``'long'`` or ``'full'`` (in which cause the language's default for
378+ ``'long'`` or ``'full'`` (in which case the language's default for
379379 that setting is used, or the default from the :attr:`Babel.date_formats`
380380 mapping is used) or a format string as documented by Babel.
381381
@@ -397,7 +397,7 @@ def format_time(time=None, format=None, rebase=True):
397397 time.
398398
399399 The format parameter can either be ``'short'``, ``'medium'``,
400- ``'long'`` or ``'full'`` (in which cause the language's default for
400+ ``'long'`` or ``'full'`` (in which case the language's default for
401401 that setting is used, or the default from the :attr:`Babel.date_formats`
402402 mapping is used) or a format string as documented by Babel.
403403
0 commit comments