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/pyassem.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/pyassem.py')
-rw-r--r-- | Lib/compiler/pyassem.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Lib/compiler/pyassem.py b/Lib/compiler/pyassem.py index 26b9001..10a8dbd 100644 --- a/Lib/compiler/pyassem.py +++ b/Lib/compiler/pyassem.py @@ -2,7 +2,6 @@ import dis import new -import string import sys import types @@ -246,7 +245,7 @@ class Block: def __str__(self): insts = map(str, self.insts) return "<block %s %d:\n%s>" % (self.label, self.bid, - string.join(insts, '\n')) + '\n'.join(insts)) def emit(self, inst): op = inst[0] @@ -713,10 +712,10 @@ class LineAddrTable: self.lastoff = self.codeOffset def getCode(self): - return string.join(self.code, '') + return ''.join(self.code) def getTable(self): - return string.join(map(chr, self.lnotab), '') + return ''.join(map(chr, self.lnotab)) class StackDepthTracker: # XXX 1. need to keep track of stack depth on jumps |