function summary () {
from=$1; shift
echo "******************** BEG SUMMARY"
- python3 - $from <<EOF
-#!/usr/bin/env python3
+ python - $from <<EOF
# read a full log and tries to extract the interesting stuff
import sys, re
m_show_line = re.compile(
-".* (BEG|END) (RPM|LXC).*|.*'boot'.*|\* .*| \* .*|.*is not installed.*|.*PROPFIND.*|.* (BEG|END).*:run_log.*|.* Within LXC (BEG|END) .*|.* MAIN (BEG|END).*")
-m_installing_any = re.compile('\r (Installing:[^\]]*]) ')
-m_installing_err = re.compile('\r (Installing:[^\]]*])(..+)')
-m_installing_end = re.compile('Installed:.*')
-m_installing_doc1 = re.compile("(.*)install-info: No such file or directory for /usr/share/info/\S+(.*)")
-m_installing_doc2 = re.compile("(.*)grep: /usr/share/info/dir: No such file or directory(.*)")
+r".* (BEG|END) (RPM|LXC).*|.*'boot'.*|\* .*| \* .*"
+"|.*is not installed.*"
+"|.*PROPFIND.*"
+"|.* (BEG|END).*:run_log.*"
+"|.* Within LXC (BEG|END) .*"
+"|.* MAIN (BEG|END).*"
+)
+m_installing_any = re.compile(r"\r (Installing:[^\]]*]) ")
+m_installing_err = re.compile(r"\r (Installing:[^\]]*])(..+)")
+m_installing_end = re.compile(r"Installed:.*")
+m_installing_doc1 = re.compile(r"(.*)install-info: No such file or directory for /usr/share/info/\S+(.*)")
+m_installing_doc2 = re.compile(r"(.*)grep: /usr/share/info/dir: No such file or directory(.*)")
def summary (filename):