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

Re: xreadlines/python2 (?) required for gen-make.py

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-10-30 03:44:37 CET

On Tue, Oct 29, 2002 at 08:36:41PM -0600, Edward S. Marshall wrote:
> On Tue, 2002-10-29 at 15:22, Daniel Rall wrote:
> > Yes, it definitely wouldn't work in all configurations. I'm hoping
> > someone will come up with a better solution. This isn't a blocking
> > problem for me, but was worth bringing up.
>
> I'm going to burn in hell for this one, but how about:
>
> #!/usr/bin/env python
> import sys, os
> if sys.hexversion < 0x02000000:
> if len(sys.argv) > 1 and sys.argv[-1] == 'bog!':
> print "You need Python 2.0 or greater to use this script."
> sys.exit(1)
> else:
> os.execvp('python2', ['python2'] + sys.argv + ['bog!'])
>
> It ain't pretty, but it works...;-)

You guys are making it too hard on yourself :-) Really... there is a *very*
simple fix. Just stop importing xreadlines! It wasn't even used anyways.

See rev 3565.

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
Received on Wed Oct 30 03:44:56 2002

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.