junsulee75 / kube_baremetal

My kubenetes configuration scripts on baremetal hosts
0 stars 0 forks source link

kubemetal_001 menu.py:89: SyntaxWarning #1

Open junsulee75 opened 5 hours ago

junsulee75 commented 5 hours ago

Python meny.py syntax warnings.

**********************************************
Copying /root/kube_baremetal/watch.pl
**********************************************

/usr/local/bin/watch.pl
/usr/local/bin/menu.py:89: SyntaxWarning: invalid escape sequence '\d'
  match = re.search("(\d+)d(\d+)",val)
/usr/local/bin/menu.py:119: SyntaxWarning: invalid escape sequence '\['
  found = re.findall("(\[.*?\]-\[.*?\])", cmd )
/usr/local/bin/menu.py:121: SyntaxWarning: invalid escape sequence '\['
  (qn, ans) = re.findall("\[(.*)\]-\[(.*)\]", match)[0]
/usr/local/bin/menu.py:174: SyntaxWarning: invalid escape sequence '\$'
  found = re.findall("\$\{(.*?)\}", tstr )
Keystrokes ['1', '1', '8']

YAML [1.0.0] : menu.yaml , Current working directory = /root/kube_baremetal
  [ 0 ] : .. 
  [ 1 ] : Kubenetes install *
  [ 2 ] : quit 
junsulee75 commented 4 hours ago

Scripts runs successfully. Minor glitch.

junsulee75 commented 1 hour ago

This happens on Ubuntu 24.04. Not happening on Ubuntu 22.04.