diff --git a/Lib/htmllib.py b/Lib/htmllib.py
index 77be4709ce5..9cf962cb385 100644
--- a/Lib/htmllib.py
+++ b/Lib/htmllib.py
@@ -5,7 +5,6 @@ http://www.w3.org/hypertext/WWW/MarkUp/html-spec/html-spec_toc.html
"""
-import sys
import string
from sgmllib import SGMLParser
from formatter import AS_IS
diff --git a/Lib/pty.py b/Lib/pty.py
index 53a4b2d3a9f..2ba193828d7 100644
--- a/Lib/pty.py
+++ b/Lib/pty.py
@@ -7,7 +7,7 @@
# Author: Steen Lumholt -- with additions by Guido.
from select import select
-import os, sys, FCNTL
+import os, FCNTL
import tty
STDIN_FILENO = 0