diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-01-06 22:07:32 +0100 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-01-06 22:07:32 +0100 |
commit | fd2165a0fb9a7a0fd63289576d61d7d89a3b792c (patch) | |
tree | f864ff769dff13916f99af0870a48442b5a4cd54 /python/002-simple-re-within-string.py | |
parent | 9daa599e88d66cb7e4c4768f45630bccdf5d60fd (diff) | |
download | snippets-fd2165a0fb9a7a0fd63289576d61d7d89a3b792c.tar.gz snippets-fd2165a0fb9a7a0fd63289576d61d7d89a3b792c.tar.xz snippets-fd2165a0fb9a7a0fd63289576d61d7d89a3b792c.zip |
Add headers refering to the project/author/license
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'python/002-simple-re-within-string.py')
-rw-r--r-- | python/002-simple-re-within-string.py | 3 |
1 files changed, 3 insertions, 0 deletions
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), |