No need to import sys or string.  (Andrew Dalke & kjpylint)
diff --git a/Lib/netrc.py b/Lib/netrc.py
index e81f0e7..9f47bab 100644
--- a/Lib/netrc.py
+++ b/Lib/netrc.py
@@ -1,6 +1,6 @@
 # Module and documentation by Eric S. Raymond, 21 Dec 1998 
 
-import sys, os, string, shlex
+import os, shlex
 
 class netrc:
     def __init__(self, file=None):