[PATCH] debugcmdserver.py: use absolute_import and print_function

Yuya Nishihara yuya at tcha.org
Wed Mar 2 09:10:41 EST 2016


On Wed, 2 Mar 2016 04:24:22 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1456872766 -19800
> #      Wed Mar 02 04:22:46 2016 +0530
> # Node ID 61bf5a16be1407364fea2481715a3690f211e850
> # Parent  a0ae243e92e51839e96c21da19e77d6ff0d69db2
> debugcmdserver.py: Added absolute_import and print_function
> 
> diff -r a0ae243e92e5 -r 61bf5a16be14 contrib/debugcmdserver.py
> --- a/contrib/debugcmdserver.py    Wed Mar 02 04:12:47 2016 +0530
> +++ b/contrib/debugcmdserver.py    Wed Mar 02 04:22:46 2016 +0530
> @@ -7,10 +7,13 @@
>  # $ ./hg serve --cmds pipe | ./contrib/debugcmdserver.py -
>  # o, 52   -> 'capabilities: getencoding runcommand\nencoding: UTF-8'
> 
> -import sys, struct
> +from __future__ import absolute_import
> +from __future__ import print_function
> +import sys
> +import struct

Same here.


More information about the Mercurial-devel mailing list