cherry-pick.eced9db.python-over-detection.patch 745 B

12345678910111213141516171819202122232425262728
  1. Upstream-Author: Christos Zoulas <christos@zoulas.com>
  2. Date: Sat Feb 15 01:30:52 2014 +0000
  3. Upstream-Commit: eced9dbd4aa438de22ff453c723136beac41a558
  4. Description:
  5. comment out python comment magic cause other things like mediawiki use it.
  6. --- a/magic/Magdir/python
  7. +++ b/magic/Magdir/python
  8. @@ -44,13 +44,13 @@
  9. !:mime text/x-python
  10. # comments
  11. -0 search/4096 '''
  12. ->&0 regex .*'''$ Python script text executable
  13. -!:mime text/x-python
  14. +#0 search/4096 '''
  15. +#>&0 regex .*'''$ Python script text executable
  16. +#!:mime text/x-python
  17. -0 search/4096 """
  18. ->&0 regex .*"""$ Python script text executable
  19. -!:mime text/x-python
  20. +#0 search/4096 """
  21. +#>&0 regex .*"""$ Python script text executable
  22. +#!:mime text/x-python
  23. # try:
  24. # except: or finally: