Code review comment for lp:~vila/bzr/1235099-illegal-option-names

Revision history for this message
getriebesand (getriebesand) wrote :

Hi, after that change bzr-svn raise an exception:

Option "guessed-layout" is not allowed.
bzr: ERROR: exceptions.TypeError: 'NoneType' object is not callable

Your regex doesnt support - in option names.

When I modify the regex to:
_option_ref_re = lazy_regex.lazy_compile('({[^\d\W](?:\.\w|\w|-\w)*})')

it seems to fix that. But I am no regex or python expert. Can you have a look please?

« Back to merge proposal