[py-svn] r34683 - py/dist/py/process
arigo at codespeak.net
arigo at codespeak.net
Thu Nov 16 18:10:43 CET 2006
Author: arigo
Date: Thu Nov 16 18:10:42 2006
New Revision: 34683
Modified:
py/dist/py/process/cmdexec.py
Log:
(cfbolz, arigo)
Fix the user-visible name of the py.process.cmdexec.Error exception.
Modified: py/dist/py/process/cmdexec.py
==============================================================================
--- py/dist/py/process/cmdexec.py (original)
+++ py/dist/py/process/cmdexec.py Thu Nov 16 18:10:42 2006
@@ -154,4 +154,10 @@
else:
cmdexec = posix_exec_cmd
+# export the exception under the name 'py.process.cmdexec.Error'
cmdexec.Error = ExecutionFailed
+try:
+ ExecutionFailed.__module__ = 'py.process.cmdexec'
+ ExecutionFailed.__name__ = 'Error'
+except (AttributeError, TypeError):
+ pass
More information about the py-svn
mailing list