diff --git a/python/console/console_sci.py b/python/console/console_sci.py index db9eca795dd..5270cbce6dd 100644 --- a/python/console/console_sci.py +++ b/python/console/console_sci.py @@ -619,7 +619,7 @@ class ShellScintilla(QsciScintilla, code.InteractiveInterpreter): self.writeCMD(cmd) import webbrowser self.updateHistory(cmd) - version = 'master' if 'master' in Qgis.QGIS_VERSION.lower() else re.findall('^\d.[0-9]*', Qgis.QGIS_VERSION)[0] + version = 'master' if 'master' in Qgis.QGIS_VERSION.lower() else re.findall(r'^\d.[0-9]*', Qgis.QGIS_VERSION)[0] if cmd in ('_pyqgis', '_api', '_cookbook'): if cmd == '_pyqgis': webbrowser.open("https://qgis.org/pyqgis/{}".format(version))