Skip to content

Commit db6be30

Browse files
Fix Latin abbreviations: "eg." → "e.g." and "ie." → "i.e." in docs
The Latin abbreviations "e.g." (exempli gratia) and "i.e." (id est) require periods after each letter. Fix instances in http.cookiejar and optparse documentation. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f3a381e commit db6be30

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Doc/library/http.cookiejar.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ introduced with RFC 2965.
2626
.. note::
2727

2828
The various named parameters found in :mailheader:`Set-Cookie` and
29-
:mailheader:`Set-Cookie2` headers (eg. ``domain`` and ``expires``) are
29+
:mailheader:`Set-Cookie2` headers (e.g. ``domain`` and ``expires``) are
3030
conventionally referred to as :dfn:`attributes`. To distinguish them from
3131
Python attributes, the documentation for this module uses the term
3232
:dfn:`cookie-attribute` instead.
@@ -574,15 +574,15 @@ both flags are set).
574574

575575
.. attribute:: DefaultCookiePolicy.DomainStrictNoDots
576576

577-
When setting cookies, the 'host prefix' must not contain a dot (eg.
577+
When setting cookies, the 'host prefix' must not contain a dot (e.g.
578578
``www.foo.bar.com`` can't set a cookie for ``.bar.com``, because ``www.foo``
579579
contains a dot).
580580

581581

582582
.. attribute:: DefaultCookiePolicy.DomainStrictNonDomain
583583

584584
Cookies that did not explicitly specify a ``domain`` cookie-attribute can only
585-
be returned to a domain equal to the domain that set the cookie (eg.
585+
be returned to a domain equal to the domain that set the cookie (e.g.
586586
``spam.example.com`` won't be returned cookies from ``example.com`` that had no
587587
``domain`` cookie-attribute).
588588

@@ -642,7 +642,7 @@ internal consistency, so you should know what you're doing if you do that.
642642

643643
.. attribute:: Cookie.port
644644

645-
String representing a port or a set of ports (eg. '80', or '80,8080'), or
645+
String representing a port or a set of ports (e.g. '80', or '80,8080'), or
646646
:const:`None`.
647647

648648

@@ -653,7 +653,7 @@ internal consistency, so you should know what you're doing if you do that.
653653

654654
.. attribute:: Cookie.path
655655

656-
Cookie path (a string, eg. ``'/acme/rocket_launchers'``).
656+
Cookie path (a string, e.g. ``'/acme/rocket_launchers'``).
657657

658658

659659
.. attribute:: Cookie.secure

Doc/library/optparse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1770,13 +1770,13 @@ where
17701770
you can access some other interesting data through its instance attributes:
17711771

17721772
``parser.largs``
1773-
the current list of leftover arguments, ie. arguments that have been
1773+
the current list of leftover arguments, i.e. arguments that have been
17741774
consumed but are neither options nor option arguments. Feel free to modify
17751775
``parser.largs``, e.g. by adding more arguments to it. (This list will
17761776
become ``args``, the second return value of :meth:`~OptionParser.parse_args`.)
17771777

17781778
``parser.rargs``
1779-
the current list of remaining arguments, ie. with ``opt_str`` and
1779+
the current list of remaining arguments, i.e. with ``opt_str`` and
17801780
``value`` (if applicable) removed, and only the arguments following them
17811781
still there. Feel free to modify ``parser.rargs``, e.g. by consuming more
17821782
arguments.

0 commit comments

Comments
 (0)