You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@lyra.org> on 2001/08/27 21:09:04 UTC
Re: CVS update: MODIFIED: cmdline, commit_tests.py, svnadmin_tests.py ...
On Mon, Aug 27, 2001 at 08:29:05PM -0000, cmpilato@tigris.org wrote:
>...
> --- basic_tests.py 2001/08/24 17:05:58 1.13
> +++ basic_tests.py 2001/08/27 20:29:05 1.14
> @@ -17,10 +17,16 @@
> ######################################################################
>
> # General modules
> -import shutil, string, sys, re, os.path
> +import shutil, string, sys, re, os.path, traceback
>
> # The `svntest' module
> -import svntest
> +try:
> + import svntest
> +except SyntaxError:
> + print "<<< Please make sure you have Python 2.1 or better! >>>"
> + traceback.print_exc()
> + raise SystemExit
In Python, a plain "raise" statement will re-raise the original error. That
could simplify the text, and eliminate the need for the traceback module:
try:
import svntest
except SyntaxError:
print "..."
raise
Your solution works fine... this has been a Python Hint Interruption. We
will now return to our regularly scheduled program...
Cheers,
-g
--
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org