Skip to content

Commit a351862

Browse files
committed
Correct documentation about returned result.
1 parent 1327cf3 commit a351862

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Doc/library/gettext.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,10 @@ unexpected, or if other problems occur while reading the file, instantiating a
436436
.. method:: pgettext(context, message)
437437

438438
Look up the *context* and *message* id in the catalog and return the
439-
corresponding message string, as an 8-bit string encoded with the
440-
catalog's encoding, if known. If there is no entry in the catalog
441-
for the *message* id and *context*, and a fallback has been set, the
442-
look up is forwarded to the fallback's :meth:`pgettext` method.
443-
Otherwise, the *message* id is returned.
439+
corresponding message string, as a Unicode string. If there is no
440+
entry in the catalog for the *message* id and *context*, and a fallback
441+
has been set, the look up is forwarded to the fallback's
442+
:meth:`pgettext` method. Otherwise, the *message* id is returned.
444443

445444
.. versionadded:: 3.8
446445

@@ -449,8 +448,8 @@ unexpected, or if other problems occur while reading the file, instantiating a
449448

450449
Do a plural-forms lookup of a message id. *singular* is used as the
451450
message id for purposes of lookup in the catalog, while *n* is used to
452-
determine which plural form to use. The returned message string is an
453-
8-bit string encoded with the catalog's encoding, if known.
451+
determine which plural form to use. The returned message string is a
452+
Unicode string.
454453

455454
If the message id for *context* is not found in the catalog, and a
456455
fallback is specified, the request is forwarded to the fallback's

0 commit comments

Comments
 (0)