-
Notifications
You must be signed in to change notification settings - Fork 357
Open
Description
Environment
- OS Rocky Linux 9.3
- Rez version 3.3.0
- Rez python version 3.13.11
To Reproduce
- Build Rez v3.3.0 from source with Python 3.13.11
- Run
rez -h
Expected behavior
The command should display the help message with no clutter.
$> rez -h
usage: rez [-h] [-i] [-V] [-v] COMMAND ...
[...]
Actual behavior
The command first displays a SyntaxtWarning, then prints out the help message.
$> rez -h
/software/rez/3.3.0/lib/python3.13/site-packages/rez/vendor/memcache/memcache.py:130: SyntaxWarning: invalid escape sequence '\ '
debuglog,\ set, set_multi, add, replace, get, get_multi,
usage: rez [-h] [-i] [-V] [-v] COMMAND ...
[...]
The offending character appears to be this backward slash:
Regression
I did not experience this bug in Rez v3.2.0 and Python 3.11.10 - Even though the offending character is present. This is likely due to Python3.12+ now reporting these syntax issues as SyntaxWarning instead of DeprecationWarning. I suspect the old-style DeprecationWarnings were being silenced.