Closed birlorg closed 4 months ago
Thanks. Those should be just a matter of adding the 'r' prefix, but I will test them on a 24.04 machine.
I agree, it seems to work for me with r
prefix, but I don't really know how piku is supposed to work, so maybe I broke stuff I don't even know about.
It’s not broken-the ‘r’ prefix denotes regular expression rules apply to those string blocks.
ssh piku@xxxxxx
/home/piku/piku.py:977: SyntaxWarning: invalid escape sequence '\.'
nginx_config_test = str(check_output("nginx -t 2>&1 | grep -E '{}\.conf:[0-9]+$'".format(app), env=environ, shell=True))
i think this related to same bug on Python3.12
I'm brand new to piku, and setting it up on on Ubuntu 24.04 LTS, which runs python 3.12 now(Python 3.12.3).
In Python3.12 deprecated escape sequence issues have been upgraded to SyntaxWarning
It's been deprecated since Python 3.6: