Re: [PATCH] gnulib-tool.py: Fix configure.ac output.

2024-02-27 Thread Collin Funk
On 2/27/24 3:39 PM, Bruno Haible wrote: > $ pycodestyle *.py > ... > GLEmiter.py:535:26: W605 invalid escape sequence '\.' > GLEmiter.py:535:35: W605 invalid escape sequence '\.' > ... I discovered it that way too. I like using Eglot from Emacs though. If you are using Emacs 29+ the `eglot' comman

Re: [PATCH] gnulib-tool.py: Fix configure.ac output.

2024-02-27 Thread Bruno Haible
Collin Funk wrote: > > I guess I wasn't very familiar with raw strings when I did this change. > > No worries, it was pretty easy to find and fix. I remember a professor > in college telling us to always use them for Python regular > expressions. It seems this is also recommended by the Python peo

Re: [PATCH] gnulib-tool.py: Fix configure.ac output.

2024-02-27 Thread Collin Funk
Hi Bruno, On 2/27/24 2:39 PM, Bruno Haible wrote: > I guess I wasn't very familiar with raw strings when I did this change. No worries, it was pretty easy to find and fix. I remember a professor in college telling us to always use them for Python regular expressions. It seems this is also recomme

Re: [PATCH] gnulib-tool.py: Fix configure.ac output.

2024-02-27 Thread Bruno Haible
Collin Funk wrote: > When running the following command, > > gnulib-tool.py --create-testdir --dir test-dir-python dummy > > creates a configure.ac like so: > > gl_source_base='gllib' > > \ > m4_ifval(gl_LIBSOURCES_LIST, [ > m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || > ... >