Author devarakondapranav
Recipients benjamin.peterson, devarakondapranav
Date 2018-10-14.00:05:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Content applies fixes to every instance of keys(), items() or values() irrespective of the type of object. Since 2to3 cannot check the type of the object, we can at least add the check to the generated code like...

d.keys() -> list(d.keys) if type(d) == dict else d.keys()
and similarly 

d.viewkeys() -> d.keys() if type(d) == dict else d.viewkeys()

PFA the tweaked fixer.
Date User Action Args
2018-10-14 00:05:49devarakondapranavsetrecipients: + devarakondapranav, benjamin.peterson
2018-10-14 00:05:49devarakondapranavsetmessageid: <>
2018-10-14 00:05:49devarakondapranavlinkissue34978 messages
2018-10-14 00:05:48devarakondapranavcreate