]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commit
Fix for python3 TypeError for 'dict_keys'
authortachylatus <helgesdk@gmail.com>
Wed, 7 Jan 2015 11:42:48 +0000 (12:42 +0100)
committertachylatus <helgesdk@gmail.com>
Wed, 7 Jan 2015 12:18:22 +0000 (13:18 +0100)
commit67ca542b9c6d0d506997ad5683e61c4146b3a05a
treeb12312b71405662d904ed6a46ce448ec4c797978
parent9b0570824fb93cf07701eff57038543d8ab744cf
Fix for python3 TypeError for 'dict_keys'

TypeError: 'dict_keys' object does not support indexing

Explanation:
In python2x, edid_map.keys() returned a list.
With python3.x, it returns a dict_keys object, which behaves more like a set instead of list.

Inspired from:
http://stackoverflow.com/questions/17322668/xi-xj-xj-xi-typeerror-dict-keys-object-does-not-support-indexing

I tested this change with python2, and it seems to work.
autorandr.py