LinuxCNC / linuxcnc

LinuxCNC controls CNC machines. It can drive milling machines, lathes, 3d printers, laser cutters, plasma cutters, robot arms, hexapods, and more.
http://linuxcnc.org/
GNU General Public License v2.0
1.78k stars 1.15k forks source link

SyntaxWarning: invalid escape sequence '\d' #2785

Closed dwrobel closed 9 months ago

dwrobel commented 9 months ago

Fixes the following syntax warning on python 3.12:

lib/python/qtvcp/widgets/versa_probe.py:57: SyntaxWarning: invalid escape sequence '\d' self.valid = QtGui.QRegExpValidator(QtCore.QRegExp('^((\d{1,4}(.\d{1,3})?)|(.\d{1,3}))$')) lib/python/qtvcp/widgets/versa_probe.py:59: SyntaxWarning: invalid escape sequence '\d' self.valid = QtGui.QRegExpValidator(QtCore.QRegExp('^((\d{1,3}(.\d{1,4})?)|(.\d{1,4}))$'))