# HG changeset patch # User Steve Losh # Date 1248328161 14400 # Node ID c2f93120c22179715f7ef270c29cde37d72f7965 # Parent a62c8ab6c87fdb26c6fd229b8c74f15fc1045ffe Import the with statement all the time. There are no ill effects on 2.6+. diff -r a62c8ab6c87f -r c2f93120c221 README --- a/README Wed Jul 22 21:23:31 2009 -0500 +++ b/README Thu Jul 23 01:49:21 2009 -0400 @@ -8,13 +8,7 @@ Requirements ------------ -hg-prompt requires Python 2.6 and makes use of some of the nifty new features. - -If you'd like to use it with Python 2.5, you'll need to add the following line at the top of the `prompt.py` file (right after the `#!/usr/bin/env python` line): - - from __future__ import with_statement - -That's two underscores on each side of the word "future". +hg-prompt requires Python 2.5 and (obviously) Mercurial. Installing ---------- diff -r a62c8ab6c87f -r c2f93120c221 prompt.py --- a/prompt.py Wed Jul 22 21:23:31 2009 -0500 +++ b/prompt.py Thu Jul 23 01:49:21 2009 -0400 @@ -1,6 +1,5 @@ #!/usr/bin/env python -# Uncomment next line if using python 2.5x from __future__ import with_statement '''get repository information for use in a shell prompt