mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -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)
|
self.writeCMD(cmd)
|
||||||
import webbrowser
|
import webbrowser
|
||||||
self.updateHistory(cmd)
|
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 in ('_pyqgis', '_api', '_cookbook'):
|
||||||
if cmd == '_pyqgis':
|
if cmd == '_pyqgis':
|
||||||
webbrowser.open("https://qgis.org/pyqgis/{}".format(version))
|
webbrowser.open("https://qgis.org/pyqgis/{}".format(version))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user