sethmlarson / virtualbox-python

Complete implementation of VirtualBox's COM API with a Pythonic interface.
https://pypi.org/project/virtualbox
Apache License 2.0
354 stars 75 forks source link

Change map() to list comprehension for Python 3 compatibility #155

Closed toblu302 closed 4 years ago

toblu302 commented 4 years ago

map() was changed in Python 3 to return an iterator instead of a list, while process.write_array expects a list. This pull request fixes this by using a list comprehension instead of map().