gapan / xdgmenumaker

A command line tool that generates XDG menus for several window managers
GNU General Public License v3.0
57 stars 15 forks source link

Syntax warning with python 3.12 #27

Closed sunshine69 closed 6 months ago

sunshine69 commented 6 months ago

Ubuntu 24.04 python 3.12.3

xdgmenumaker -n -i -f jwm /usr/local/bin/xdgmenumaker:563: SyntaxWarning: invalid escape sequence ')' name = app.name.decode().replace(')', ')')

Looks ike this python version it thinks the \ is the escape char even string quote using '

I just put the r into it and it is quiet. Trying to make a PR but somehow does not see the fork button .

soemthing like this on line 563

name = app.name.decode().replace(')', r'\)')
sunshine69 commented 6 months ago

Just see the fork button - PR created

gapan commented 6 months ago

PR merged, thanks!