Message327682
fix_dict.py 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:49 | devarakondapranav | set | recipients:
+ devarakondapranav, benjamin.peterson |
2018-10-14 00:05:49 | devarakondapranav | set | messageid: <1539475549.65.0.788709270274.issue34978@psf.upfronthosting.co.za> |
2018-10-14 00:05:49 | devarakondapranav | link | issue34978 messages |
2018-10-14 00:05:48 | devarakondapranav | create | |
|