diff options
Diffstat (limited to 'src/plugins/python/pythonutils.cpp')
| -rw-r--r-- | src/plugins/python/pythonutils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/python/pythonutils.cpp b/src/plugins/python/pythonutils.cpp index 87156e3b9cc..04144a3e41b 100644 --- a/src/plugins/python/pythonutils.cpp +++ b/src/plugins/python/pythonutils.cpp @@ -98,7 +98,7 @@ static QStringList replImportArgs(const FilePath &pythonFile, ReplType type) ? MimeTypes() : mimeTypesForFileName(pythonFile.toString()); const bool isPython = Utils::anyOf(mimeTypes, [](const MimeType &mt) { - return mt.inherits("text/x-python") || mt.inherits("text/x-python3"); + return mt.inherits(Constants::C_PY_MIMETYPE) || mt.inherits(Constants::C_PY3_MIMETYPE); }); if (type == ReplType::Unmodified || !isPython) return {}; |
