[PATCH] Rewrite feature to render hg-to-git compatible with python2.x and 3.x

2019-09-17 Thread Hervé Beraud
compatible with the latest versions of python. Signed-off-by: Hervé Beraud --- contrib/hg-to-git/hg-to-git.py | 52 +- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py index de3

[PATCH v2] hg-to-git: make it compatible with both python3 and python2

2019-09-18 Thread Hervé Beraud
that are no longer supported (or recommended) in Python 3 in the hg-to-git script.py so that it can be used with both Python 2 and 3, namely: - print is not a statement; use print() function instead. - dict.has_key(key) is no more; use "key in dict" instead. Signed-off-by: Hervé Beraud --

[PATCH v3] hg-to-git: make it compatible with both python3 and python2

2019-09-18 Thread Hervé Beraud
Python 2 is EOL at the end of 2019, many distros and systems now come with python 3 as their default version. These changes introduce a syntaxe compatible with the both versions of python and so with the nearly future python standard. Signed-off-by: Hervé Beraud --- contrib/hg-to-git/hg-to

[PATCH] make hg-to-git compatible with python2.x and 3.x

2018-02-15 Thread Hervé Beraud
--- contrib/hg-to-git/hg-to-git.py | 140 - 1 file changed, 83 insertions(+), 57 deletions(-) diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py index de3f81667ed97..9b0842c3883dc 100755 --- a/contrib/hg-to-git/hg-to-git.py +++ b/c

[PATCH] make hg-to-git compatible with python2.x and 3.x

2018-02-20 Thread Hervé Beraud
Signed-off-by: Hervé Beraud --- contrib/hg-to-git/hg-to-git.py | 52 +- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/contrib/hg-to-git/hg-to-git.py b/contrib/hg-to-git/hg-to-git.py index de3f81667ed97..8fa7698df5c20 100755 --- a/contrib