Wow. I'm experiencing the same problem. I run the following test case:
$ tee index.py <<eol #! /usr/bin/env python3 example_string = \ """\ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Example title</title> </head> <body> <p>Example body</p> </body> </html> """ print('Hello, world!') eol $ kmimetypefinder5 index.py # => application/xhtml+xml The last command outputs wrong type. Seriously, it's a bug. I've the same problem in a separate bugreport. Checkout: https://bugs.launchpad.net/ubuntu/+source/shared-mime-info/+bug/1890716 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1857824 Title: kmimetypefinder5 misidentifies mimetype of python files containing certain strings To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/kde-cli-tools/+bug/1857824/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
