rgthree-comfy
rgthree-comfy copied to clipboard
SyntaxWarning: invalid escape sequence '\d'
https://github.com/rgthree/rgthree-comfy/blob/32142fe476878a354dda6e2d4b5ea98960de3ced/py/power_prompt_utils.py#L11
bug: pattern = '<lora:([^:>]*?)(?::(-?\d*(?:\.\d*)?))?>'
fix: pattern = r'<lora:([^:>]*?)(?::(-?\d*(?:\.\d*)?))?>'
Restarting ComfyUI fixes the problem no need to make this change.
Restarting didn't help Python 3.12 has more strict syntax check. Next python it will be SyntaxError, not SyntaxWarning. @MartinMoenks suggestion is correct
Thanks, I've fixed this.