Skip to content
Permalink
Browse files

[console] Fix invalid regex warning

  • Loading branch information
nyalldawson committed Jun 22, 2018
1 parent 12efb86 commit 398e2a17ddc8d7649003590e997e33d72c5ee540
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/console/console_sci.py
@@ -619,7 +619,7 @@ def runCommand(self, cmd):
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))

0 comments on commit 398e2a1

Please sign in to comment.
You can’t perform that action at this time.