new extensions_native version of Ramfile-extentions.py

This commit is contained in:
Dickinson Lo 2005-10-28 11:20:12 +00:00
parent f718cd20b2
commit cb435ec686
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
from extension_native_helpers import *
from libpandaexpress import *
"""
Ramfile_extensions module: contains methods to extend functionality
of the Ramfile class
"""
def readlines(self):
"""Reads all the lines at once and returns a list."""
lines = []
line = self.readline()
while line:
lines.append(line)
line = self.readline()
return lines
Dtool_funcToMethod(readlines, Ramfile)
del readlines