[Svnmerge] [PATCH] svnmerge.py: all error handling to be doneusing the error() function

Madan U S madan at collab.net
Fri Mar 31 11:55:54 PST 2006


Daniel Rall said:
> madan said:
> +def error(s):
> +    """Subroutine to output an error and bail."""
> +    print >> sys.stderr, "%s: %s" % (NAME, s)
> +    sys.exit(1)
> +

> > We don't really need to relocate the definition of this function
> > within the source file.

I would think so too. But I tried with a sample pythong script. It expected the declaration of a function to preceed the usage. Wondering what could be different?!

Regards,
Madan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/svnmerge/attachments/20060401/925797f4/attachment.htm 


More information about the Svnmerge mailing list