pmacs3/buffer/data.py

15 lines
326 B
Python
Raw Normal View History

2008-10-29 10:58:06 -04:00
from buffer import Buffer
class DataBuffer(Buffer):
btype = 'data'
def __init__(self, name, data):
Buffer.__init__(self)
self._name = name
self.lines = data.split("\n")
def name(self):
return self._name
def close(self):
pass
def readonly(self):
return True