Author: reinhard
Date: 2007-05-05 07:13:54 -0500 (Sat, 05 May 2007)
New Revision: 9549
Modified:
trunk/gnue-common/src/utils/file.py
Log:
Epydoc fix.
Modified: trunk/gnue-common/src/utils/file.py
===================================================================
--- trunk/gnue-common/src/utils/file.py 2007-05-03 07:37:54 UTC (rev 9548)
+++ trunk/gnue-common/src/utils/file.py 2007-05-05 12:13:54 UTC (rev 9549)
@@ -59,15 +59,12 @@
"""
Convert a string to a file object if it is not already.
- Examples:
-
>>> to_buffer('This is text\nFoo.').read()
>>> my_file = open('/etc/passwd')
>>> to_buffer(my_file) == my_file
>>> myfile.read()
<<< True
-
"""
if hasattr(item, 'read'):
return item
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.