]> granicus.if.org Git - python/commitdiff
Fix typo in object.__getnewargs__() documentation (GH-7554)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 10 Jun 2018 01:01:36 +0000 (18:01 -0700)
committerGitHub <noreply@github.com>
Sun, 10 Jun 2018 01:01:36 +0000 (18:01 -0700)
(cherry picked from commit 0e0534c4024c181aa47a300142c59eeeee71db46)

Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Doc/library/pickle.rst

index d0c4cf937c8ac57c0d6a36c49c5d4d53d1b7eff9..2b10ee2eb8ee30d720c1c9171b367e9800405bcc 100644 (file)
@@ -510,7 +510,7 @@ methods:
 
 .. method:: object.__getnewargs__()
 
-   This method serve a similar purpose as :meth:`__getnewargs_ex__`, but
+   This method serves a similar purpose as :meth:`__getnewargs_ex__`, but
    supports only positional arguments.  It must return a tuple of arguments
    ``args`` which will be passed to the :meth:`__new__` method upon unpickling.