summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2015-01-06 22:07:32 +0100
committerJan Pokorný <jpokorny@redhat.com>2015-01-06 22:07:32 +0100
commitfd2165a0fb9a7a0fd63289576d61d7d89a3b792c (patch)
treef864ff769dff13916f99af0870a48442b5a4cd54
parent9daa599e88d66cb7e4c4768f45630bccdf5d60fd (diff)
downloadsnippets-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>
-rw-r--r--python/001-hexstring2bytes.py3
-rw-r--r--python/002-simple-re-within-string.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/python/001-hexstring2bytes.py b/python/001-hexstring2bytes.py
index 22de43d..341582f 100644
--- a/python/001-hexstring2bytes.py
+++ b/python/001-hexstring2bytes.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
+
# we only consider absolute value (for tha case of "-0x..." hexstr parameter)
# presumably damn slow, but should work for magic strings with uknown length
hexstring2bytes = \
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),