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

2019-09-17 Thread Junio C Hamano
Junio C Hamano writes: One more thing. > Subject: Re: [PATCH] Rewrite feature to render hg-to-git compatible with > python2.x and 3.x Our commit titles typically begin with : prefix, e.g. Subject: hg-to-git: make it compatibile with both Python 3 and Python 2 or something like that.

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

2019-09-17 Thread Junio C Hamano
Hervé Beraud writes: > Rewrite features that are no longer supported (or recommended) > in Python 3 in the script 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. >

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

2019-09-17 Thread Hervé Beraud
Rewrite features that are no longer supported (or recommended) in Python 3 in the script 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. - map(lambda ..., collection) is no