git-p4: python3: replace dict.has_key(k) with "k in dict"
authorLuke Diamand <luke@diamand.org>
Tue, 19 Jun 2018 08:04:07 +0000 (09:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Jun 2018 16:34:31 +0000 (09:34 -0700)
commitdba1c9d9f26ac9fce55d0bfde8a040700fc9ff52
tree39a82034fb314c92845a49bc2b3bfc1216e84c70
parentfc35c9d5dc8fefbc29e9713e6b47eb4c19579d56
git-p4: python3: replace dict.has_key(k) with "k in dict"

Python3 does not have the dict.has_key() function, so replace all
such calls with "k in dict". This will still work with python2.6
and python2.7.

Converted using 2to3 (plus some hand-editing)

Signed-off-by: Luke Diamand <luke@diamand.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-p4.py