[Epydoc-commits] SF.net SVN: epydoc: [1431] trunk/epydoc/src/epydoc/util.py
Brought to you by:
edloper
|
From: <dva...@us...> - 2007-02-04 02:57:24
|
Revision: 1431
http://svn.sourceforge.net/epydoc/?rev=1431&view=rev
Author: dvarrazzo
Date: 2007-02-03 18:57:23 -0800 (Sat, 03 Feb 2007)
Log Message:
-----------
- In case of a IOError, raise OSError instead, to respect the function
signature enforced by many callers. IOError may happen e.g. when the
program is not found.
Modified Paths:
--------------
trunk/epydoc/src/epydoc/util.py
Modified: trunk/epydoc/src/epydoc/util.py
===================================================================
--- trunk/epydoc/src/epydoc/util.py 2007-02-04 02:45:37 UTC (rev 1430)
+++ trunk/epydoc/src/epydoc/util.py 2007-02-04 02:57:23 UTC (rev 1431)
@@ -269,7 +269,11 @@
else:
to_child, from_child, child_err = os.popen3(' '.join(cmd), 'b')
if data:
- to_child.write(data)
+ try:
+ to_child.write(data)
+ # Guard for a broken pipe error
+ except IOError, e:
+ raise OSError(e)
to_child.close()
err = child_err.read()
out = from_child.read()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|