From 53321bb6a30e4beff258cd1768300f5988cf6d90 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 18 Mar 2019 12:17:56 +0100 Subject: [PATCH] Py3: make string concatenation to work with Py2 and Py3 --- src/Gui/OnlineDocumentation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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";