sys was already imported, remove second import
diff --git a/Lib/codecs.py b/Lib/codecs.py
index b377979..1bf4c8d 100644
--- a/Lib/codecs.py
+++ b/Lib/codecs.py
@@ -705,8 +705,6 @@
 
 if __name__ == '__main__':
 
-    import sys
-
     # Make stdout translate Latin-1 output into UTF-8 output
     sys.stdout = EncodedFile(sys.stdout, 'latin-1', 'utf-8')