Description of problem: Please add detection of Python 3.2 bytecode for the .pyc/.pyo files. pyc files are detected as "data". Version-Release number of selected component (if applicable): How reproducible: # file something.pyo # file something.pyc Steps to Reproduce: 1. 2. 3. Actual results: type data Expected results: python files Additional info:
If you have Python 3.2, could you please run following code and send me a output? it will show magic bytes used by pyc compiled in that Python version: >>> import binascii, imp >>> binascii.hexlify(imp.get_magic()) I don't have any Python 3.2 here and I want to be sure... Thanks.
I have Python 3.2 : >>> import binascii, imp >>> >>> binascii.hexlify(imp.get_magic()) b'6c0c0d0a'
Adding the following line to file-5.05/magic/Magdir/python works for me : belong 0x6c0c0d0a python 3.2 byte-compiled
Thanks, I'll backport it soon.
Fixed in file-5.05-4.fc16.