wmllint: removed an instance of deprecated dict.has_key()
This commit is contained in:
parent
5c1047d372
commit
681d033bca
1 changed files with 1 additions and 1 deletions
|
@ -1540,7 +1540,7 @@ def global_sanity_check(filename, lines):
|
|||
fields = lines[i].split("wmllint: who ", 1)[1].split(" is ", 1)
|
||||
if len(fields) == 2:
|
||||
mac = string_strip(fields[0].strip()).strip('{}')
|
||||
if whopairs.has_key(mac):
|
||||
if mac in whopairs:
|
||||
whopairs[mac] = whopairs[mac] + ", " + fields[1].strip()
|
||||
else:
|
||||
whopairs.update({mac: fields[1].strip()})
|
||||
|
|
Loading…
Add table
Reference in a new issue