Re: [PATCH] Modification of the diffconfig script to support python 3.x and 2.7
From: Valdis . Kletnieks
Date: Mon Jul 08 2013 - 15:14:57 EST
On Thu, 04 Jul 2013 20:19:03 -0400, Mike Pagano said:
I'm not a snake-language person, but...
> Modification of the diffconfig script to support both python 2.7 and 3.2.
> Added a small change to gracefully exit if the default config files are not
> present. (.config and .config.old)
>
> Diffconfig is a utility script for comparing kernel configuration files.
>
> Signed-off-by: Mike Pagano <mpagano@xxxxxxxxxx>
> ---
> scripts/diffconfig | 32 +++++++++++++++++++-------------
> 1 file changed, 19 insertions(+), 13 deletions(-)
>
> diff --git a/scripts/diffconfig b/scripts/diffconfig
> index b91f3e3..45a4ba4 100755
> --- a/scripts/diffconfig
> +++ b/scripts/diffconfig
> @@ -10,7 +10,7 @@
> import sys, os
>
> def usage():
> - print """Usage: diffconfig [-h] [-m] [<config1> <config2>]
> + print ("""Usage: diffconfig [-h] [-m] [<config1> <config2>]
Is this hunk missing a ) at the end of the line?
Attachment:
pgp00000.pgp
Description: PGP signature