91bec91479bc

Fixed hg help screen for prompt

hg help would report "(no help text available)" for the prompt plugin
because the package comment was located after the future import. This
patch fixes that problem by relocating the future import to after the
package comment.
[view raw] [browse files]
author Chris Mansley <chris.mansley@us.bosch.com>
date Fri, 20 Jan 2012 10:17:56 -0800
parents c4095c3519d6
children 0649e77b06d0
branches/tags (none)
files prompt.py

Changes

--- a/prompt.py	Wed Mar 23 15:42:04 2011 -0400
+++ b/prompt.py	Fri Jan 20 10:17:56 2012 -0800
@@ -1,7 +1,5 @@
 #!/usr/bin/env python
 
-from __future__ import with_statement
-
 '''get repository information for use in a shell prompt
 
 Take a string, parse any special variables inside, and output the result.
@@ -10,6 +8,8 @@
 a shell prompt.
 '''
 
+from __future__ import with_statement
+
 import re
 import os
 import subprocess