mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[console] Fix invalid regex warning
This commit is contained in:
parent
12efb8669e
commit
398e2a17dd
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user