Commit 779a898a authored by Ralf Habacker's avatar Ralf Habacker

Fix bug not importing python classes without methods or members.

BUG: 328065
FIXED-IN:4.11.4
parent 098d0b47
......@@ -103,6 +103,12 @@ bool PythonImport::preprocess(QString& line)
m_srcIndex++;
}
}
if (m_braceWasOpened && m_srcIndentIndex == 0) {
m_source.append("}");
m_srcIndex++;
}
if (line.endsWith(':')) {
line.replace( QRegExp(":$"), "{" );
m_braceWasOpened = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment