commit | 213335d85286cd7a188d9f83b59ce0d6c2da7146 | [log] [tgz] |
---|---|---|
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | Mon Aug 04 14:11:24 2014 +0200 |
committer | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | Mon Aug 04 14:11:24 2014 +0200 |
tree | 0734b93c7322ba0fbbf7c8bf237b575d1c400740 | |
parent | 2830df3b297f7caa84306316112d5485ad45b5b7 [diff] |
Revert incorrect commit 9351edad48523bb38b1bf651506786bdc8814f62, which broke file type detection in chpathtool.py with Python 3 and magic module present. >>> import magic >>> m = magic.open(magic.MIME_TYPE) >>> m.load() 0 >>> m.file(b"/etc/fstab") 'text/plain' >>> m.file(str(b"/etc/fstab")) "cannot open `b'/etc/fstab'' (No such file or directory)"