mirror of https://github.com/python/cpython
Merge with 3.4
This commit is contained in:
commit
3f209b63f5
|
@ -335,8 +335,6 @@ class FileContext:
|
||||||
self.buffer.append(line)
|
self.buffer.append(line)
|
||||||
self.lineno += 1
|
self.lineno += 1
|
||||||
return line
|
return line
|
||||||
def truncate(self):
|
|
||||||
del self.buffer[-window:]
|
|
||||||
def __getitem__(self, index):
|
def __getitem__(self, index):
|
||||||
self.fill()
|
self.fill()
|
||||||
bufstart = self.lineno - len(self.buffer)
|
bufstart = self.lineno - len(self.buffer)
|
||||||
|
|
Loading…
Reference in New Issue