diff --git a/src/Gui/OnlineDocumentation.cpp b/src/Gui/OnlineDocumentation.cpp index 28b5bd22b8..f740e1cdce 100644 --- a/src/Gui/OnlineDocumentation.cpp +++ b/src/Gui/OnlineDocumentation.cpp @@ -116,7 +116,7 @@ QByteArray PythonOnlineHelp::loadResource(const QString& filename) const dict = PyDict_Copy(dict); QByteArray cmd = - "import string, os, sys, pydoc, pkgutil\n" + "import os, sys, pydoc, pkgutil\n" "\n" "class FreeCADDoc(pydoc.HTMLDoc):\n" " def index(self, dir, shadowed=None):\n" @@ -160,7 +160,7 @@ QByteArray PythonOnlineHelp::loadResource(const QString& filename) const " ret = pydoc.html.index(dir, seen)\n" " if ret != None:\n" " indices.append(ret)\n" - "contents = heading + string.join(indices) + '''

\n" + "contents = heading + ' '.join(indices) + '''

\n" "\n" "pydoc by Ka-Ping Yee <ping@lfw.org>'''\n" "htmldocument=pydoc.html.page(title,contents)\n";