src/eric7/Utilities/MimeTypes.py

branch
eric7
changeset 9576
be9f8e7e42e0
parent 9572
3b46c662a004
child 9653
e67609152c5e
diff -r 635b6c5a36e1 -r be9f8e7e42e0 src/eric7/Utilities/MimeTypes.py
--- a/src/eric7/Utilities/MimeTypes.py	Tue Dec 06 16:57:54 2022 +0100
+++ b/src/eric7/Utilities/MimeTypes.py	Tue Dec 06 17:35:41 2022 +0100
@@ -41,14 +41,13 @@
                     "<p>Is the file <b>{0}</b> a text file to be opened in eric?</p>"
                     "<p><b>Note:</b> You may suppress this question by adding a pattern"
                     " to the list of known text files on the <b>MimeTypes</b>"
-                    " configuration page.</p>"
+                    " configuration page.</p>",
                 ).format(filename),
             )
         )
     else:
-        return (
-            mimetype.split("/")[0] == "text"
-            or mimetype in Preferences.getUI("TextMimeTypes")
+        return mimetype.split("/")[0] == "text" or mimetype in Preferences.getUI(
+            "TextMimeTypes"
         )
 
 

eric ide

mercurial