summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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),