diff options
author | Georg Brandl <georg@python.org> | 2010-10-06 10:41:31 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-10-06 10:41:31 (GMT) |
commit | 35e7a8fa53ccb1f4381b0489b4766c31ad982945 (patch) | |
tree | d35925ec33fca76799a6162188b4395a38175be6 /Doc/faq/library.rst | |
parent | 0d8f375a2c960d9ce7deae5b8c8e28ef55c7d95b (diff) | |
download | cpython-35e7a8fa53ccb1f4381b0489b4766c31ad982945.zip cpython-35e7a8fa53ccb1f4381b0489b4766c31ad982945.tar.gz cpython-35e7a8fa53ccb1f4381b0489b4766c31ad982945.tar.bz2 |
Merged revisions 85274 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r85274 | georg.brandl | 2010-10-06 12:26:05 +0200 (Mi, 06 Okt 2010) | 1 line
Fix errors found by "make suspicious".
........
Diffstat (limited to 'Doc/faq/library.rst')
-rw-r--r-- | Doc/faq/library.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/library.rst b/Doc/faq/library.rst index e741c58..c122d72 100644 --- a/Doc/faq/library.rst +++ b/Doc/faq/library.rst @@ -458,7 +458,7 @@ To rename a file, use ``os.rename(old_path, new_path)``. To truncate a file, open it using ``f = open(filename, "r+")``, and use ``f.truncate(offset)``; offset defaults to the current seek position. There's -also ```os.ftruncate(fd, offset)`` for files opened with :func:`os.open`, where +also ``os.ftruncate(fd, offset)`` for files opened with :func:`os.open`, where ``fd`` is the file descriptor (a small integer). The :mod:`shutil` module also contains a number of functions to work on files |