https://bugs.kde.org/show_bug.cgi?id=439108
Bug ID: 439108 Summary: Python files with "class" word in the beginning are classified as "text/x-modelica" (Modelica model) Product: dolphin Version: 21.04.1 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: dolphin-bugs-n...@kde.org Reporter: norbertzpil...@gmail.com CC: kfm-de...@kde.org Target Milestone: --- SUMMARY When the first line of Python file contains "class" keyword it's being recognized as Modelica model file not a Python file. When I leave 1st line empty and second line has class keyword it's normal. STEPS TO REPRODUCE 1. Create new python file, for ex. test.py 2. Type "class" in file and save it 3. The file changes icon and is recognized as text/x-modelica (Modelica model) OBSERVED RESULT Python file shown as Modelica model. EXPECTED RESULT Python file shown as Python file no matter the content. SOFTWARE/OS VERSIONS Linux: Arch Linux KDE Plasma Version: 5.22.0 (but it started a while ago) KDE Frameworks Version: 5.82.0 Qt Version: 5.15.2 -- You are receiving this mail because: You are watching all bug changes.