Lines Matching refs:TextFile
1521 :mod:`distutils.text_file` --- The TextFile class
1525 :synopsis: provides the TextFile class, a simple interface to text files
1528 This module provides the :class:`TextFile` class, which gives an interface to
1533 .. class:: TextFile([filename=None, file=None, **options])
1547 :class:`TextFile` instances are create with either *filename*, *file*, or both.
1551 *filename*, so that :class:`TextFile` can include it in warning messages. If
1552 *file* is not supplied, :class:`TextFile` creates its own using the
1611 .. method:: TextFile.open(filename)
1617 .. method:: TextFile.close()
1623 .. method:: TextFile.warn(msg[,line=None])
1633 .. method:: TextFile.readline()
1644 .. method:: TextFile.readlines()
1650 .. method:: TextFile.unreadline(line)