Better Py3 compat: d.has_key(k) -> k in d
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 30 Jan 2013 14:03:04 +0000 (15:03 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 30 Jan 2013 14:03:04 +0000 (15:03 +0100)
commit04453ccf422539a2f5752a83084cfac7a8c701ee
treeb7c555f914912a4689528ed708e687f95c0a096f
parent3f931680e361086508d24d357f3d4d44466164bf
Better Py3 compat: d.has_key(k) -> k in d

py3 does not have dict.has_key any more. You have to use
"key in dict" instead. As that works in python2 as well,
let's use that.

Also some small bits of pep8.
mediagoblin/tests/test_auth.py
mediagoblin/tests/test_config.py
mediagoblin/tools/request.py
mediagoblin/tools/template.py
mediagoblin/tools/translate.py