[issue16620] Avoid using private function glob.glob1() in msi module and tools

Serhiy Storchaka report at bugs.python.org
Mon Jan 18 14:53:09 EST 2016


Serhiy Storchaka added the comment:

It looks to me that the glob() method of msilib.Directory is broken from the born. It uses the function from the glob module, but the glob module is not imported in this source file.

Even if add missed import, returned value is incorrect in Python 3. In Python 2 glob.glob1() always returned a list, but in in Python 3 it can return an empty list or an iterator. After iterating on it msilib.Directory returns an empty list or exhausted iterator.

----------
type: enhancement -> behavior
versions: +Python 2.7, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16620>
_______________________________________


More information about the Python-bugs-list mailing list