Import the keyword module instead of relying on our own list of
reserved words.  No longer need to import string.
diff --git a/Doc/ref/reswords.py b/Doc/ref/reswords.py
index 22c3bb8..29f326f 100644
--- a/Doc/ref/reswords.py
+++ b/Doc/ref/reswords.py
@@ -1,20 +1,11 @@
 """Spit out the Python reserved words table."""
 
-import string
-
-raw_words = """
-and       del       for       is        raise    
-assert    elif      from      lambda    return   
-break     else      global    not       try      
-class     except    if        or        while    
-continue  exec      import    pass               
-def       finally   in        print              
-"""
+import keyword
 
 ncols = 5
 
 def main():
-    words = string.split(raw_words)
+    words = keyword.kwlist[:]
     words.sort()
     colwidth = 1 + max(map(len, words))
     nwords = len(words)