# HG changeset patch # User Chris Mansley # Date 1327083476 28800 # Node ID 91bec91479bc908fa267a91238c6ad5a01ea0700 # Parent c4095c3519d61f97f78fd767c1f81c6b4f06df80 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. diff -r c4095c3519d6 -r 91bec91479bc prompt.py --- 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