Re: [PATCH v2 10/10] backports: lib/kconfig.py - fix src line regexp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2013-07-19 at 15:13 -0700, Luis R. Rodriguez wrote:

> -src_line = re.compile(r'^source\s+"?(?P<src>[^\s"]*)"?\s*$')
> +src_line = re.compile(r'^[\s]*source\s+"?(?P<src>[^\s"]*)"?\s*$')

Looks fine, not that I understand why you added [] when you have just a
single character in there? Might be better to just write "\s*" (without
the quotes, obviously)

johannes

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux