| Summary: | Add detection of Python 3.2 bytecode | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | bouloumag |
| Component: | file | Assignee: | Jan Kaluža <jkaluza> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | jkaluza |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-03-01 08:58:36 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
bouloumag
2011-02-18 02:01:58 UTC
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. |