Fix a typo in the curses docs
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index c424148..2d0043c 100644
--- a/Doc/library/curses.rst
+++ b/Doc/library/curses.rst
@@ -837,7 +837,7 @@
 .. attribute:: window.encoding
 
    Encoding used to encode method arguments (Unicode strings and characters).
-   The encoding attribute is inherited from by parent window when a subwindow
+   The encoding attribute is inherited from the parent window when a subwindow
    is created, for example with :meth:`window.subwin`. By default, the locale
    encoding is used (see :func:`locale.getpreferredencoding`).