mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
Remove uses of string module and stat.ST_MODE
This commit is contained in:
parent
ec7cf1382b
commit
a312c3ade7
3 changed files with 7 additions and 11 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue