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
_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue