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
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
--
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
---
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
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
5 matches
Mail list logo