Skip to content

Commit 398e2a1

Browse files
committed
[console] Fix invalid regex warning
1 parent 12efb86 commit 398e2a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/console/console_sci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def runCommand(self, cmd):
619619
self.writeCMD(cmd)
620620
import webbrowser
621621
self.updateHistory(cmd)
622-
version = 'master' if 'master' in Qgis.QGIS_VERSION.lower() else re.findall('^\d.[0-9]*', Qgis.QGIS_VERSION)[0]
622+
version = 'master' if 'master' in Qgis.QGIS_VERSION.lower() else re.findall(r'^\d.[0-9]*', Qgis.QGIS_VERSION)[0]
623623
if cmd in ('_pyqgis', '_api', '_cookbook'):
624624
if cmd == '_pyqgis':
625625
webbrowser.open("https://qgis.org/pyqgis/{}".format(version))

0 commit comments

Comments
 (0)