Remove uses of string module and stat.ST_MODE
diff --git a/Lib/compiler/transformer.py b/Lib/compiler/transformer.py
index 32a4160..382ea41 100644
--- a/Lib/compiler/transformer.py
+++ b/Lib/compiler/transformer.py
@@ -28,7 +28,6 @@
# 1.5.2 for code branches executed in 1.5.2
import symbol
import token
-import string
import sys
error = 'walker.error'
@@ -111,7 +110,7 @@
def parsesuite(self, text):
"""Return a modified parse tree for the given suite text."""
# Hack for handling non-native line endings on non-DOS like OSs.
- text = string.replace(text, '\x0d', '')
+ text = text.replace('\x0d', '')
return self.transform(parser.suite(text))
def parseexpr(self, text):