[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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

From: Madan U S <madan_at_collab.net>
Date: 2006-03-31 21:55:54 CEST

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.
Received on Fri Mar 31 22:00:54 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.