Lines Matching refs:TextFile
1529 :mod:`distutils.text_file` --- The TextFile class
1533 :synopsis: provides the TextFile class, a simple interface to text files
1536 This module provides the :class:`TextFile` class, which gives an interface to
1541 .. class:: TextFile([filename=None, file=None, **options])
1555 :class:`TextFile` instances are create with either *filename*, *file*, or both.
1559 *filename*, so that :class:`TextFile` can include it in warning messages. If
1560 *file* is not supplied, :class:`TextFile` creates its own using the
1619 .. method:: TextFile.open(filename)
1625 .. method:: TextFile.close()
1631 .. method:: TextFile.warn(msg[,line=None])
1641 .. method:: TextFile.readline()
1652 .. method:: TextFile.readlines()
1658 .. method:: TextFile.unreadline(line)