devices: make iteration device classes compatible with Python2

This commit is contained in:
Frédéric Pierret (fepitre) 2019-08-07 20:38:30 +02:00
parent 174f155d31
commit 268d11fbff
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

View File

@ -303,7 +303,7 @@ class DeviceManager(dict):
return self[key]
def __iter__(self):
yield from self._get_device_classes()
return iter(self._get_device_classes())
def keys(self):
return self._get_device_classes()