os was already imported in the module, no need to re-import
diff --git a/Lib/mimetools.py b/Lib/mimetools.py
index eb0ab71..d519539 100644
--- a/Lib/mimetools.py
+++ b/Lib/mimetools.py
@@ -112,7 +112,6 @@
     import random
     if _prefix is None:
         import socket
-        import os
         hostid = socket.gethostbyname(socket.gethostname())
         try:
             uid = `os.getuid()`