Fix urllib function reference.
diff --git a/Doc/library/cgi.rst b/Doc/library/cgi.rst
index 4286703..fd1e92f 100644
--- a/Doc/library/cgi.rst
+++ b/Doc/library/cgi.rst
@@ -277,7 +277,7 @@
    parsing errors.  If false (the default), errors are silently ignored.  If true,
    errors raise a :exc:`ValueError` exception.
 
-   Use the :func:`urllib.urlencode` function to convert such dictionaries into
+   Use the :func:`urllib.parse.urlencode` function to convert such dictionaries into
    query strings.
 
 
@@ -297,7 +297,7 @@
    parsing errors.  If false (the default), errors are silently ignored.  If true,
    errors raise a :exc:`ValueError` exception.
 
-   Use the :func:`urllib.urlencode` function to convert such lists of pairs into
+   Use the :func:`urllib.parse.urlencode` function to convert such lists of pairs into
    query strings.