diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-06 18:30:10 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-06-06 18:30:10 (GMT) |
commit | a312c3ade77a5852c00fd4216626d0423272904a (patch) | |
tree | fc4da3bf271cf872e67e92ac4a6d48f94885e56a /Lib/compiler/transformer.py | |
parent | ec7cf1382bc4f32aa4fe20edcf8be83cbf530c62 (diff) | |
download | cpython-a312c3ade77a5852c00fd4216626d0423272904a.zip cpython-a312c3ade77a5852c00fd4216626d0423272904a.tar.gz cpython-a312c3ade77a5852c00fd4216626d0423272904a.tar.bz2 |
Remove uses of string module and stat.ST_MODE
Diffstat (limited to 'Lib/compiler/transformer.py')
-rw-r--r-- | Lib/compiler/transformer.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 @@ import parser # 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 @@ class Transformer: 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): |