From fd2165a0fb9a7a0fd63289576d61d7d89a3b792c Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Tue, 6 Jan 2015 22:07:32 +0100 Subject: Add headers refering to the project/author/license MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- python/002-simple-re-within-string.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/002-simple-re-within-string.py') diff --git a/python/002-simple-re-within-string.py b/python/002-simple-re-within-string.py index 5259418..65cdc62 100644 --- a/python/002-simple-re-within-string.py +++ b/python/002-simple-re-within-string.py @@ -1,3 +1,6 @@ +# part of https://fedorapeople.org/cgit/jpokorny/public_git/snippets.git +# (c) Jan Pokorny, license determined per COPYING file in the repository's root + version_start, version_stop = reduce( lambda acc, x: (acc[0] if acc[0] or not x[1].isdigit() else x[0]+1, acc[0] if not x[1].isdigit() else x[0]+1), -- cgit