sss: force to use python3 and clean unused variables
[freebsd-maintainer-scripts/.git] / sss
diff --git a/sss b/sss
index e53feb482b96db2987c7a1f67a967f6d472b934f..9d386d20ea8a72f403ccee61508f0d3c50b3617a 100755 (executable)
--- a/sss
+++ b/sss
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 sss - sbz svn status verbose on one line
@@ -11,6 +11,8 @@ import sys
 import xml.etree.ElementTree as ET
 
 """
+Algorithm:
+
 line = Parse output of svn up
 foreach path in lines
     xml data = svn log -rHEAD path --xml
@@ -18,35 +20,6 @@ foreach path in lines
     print status, path, shortmsg, status, author
 """
 
-x_data = """U    src/bin/dd/args.c
-U    src/bin/dd/conv.c
-U    src/bin/dd/dd.c
-U    src/bin/dd/dd.h
-U    src/bin/dd/position.c
-U    src/bin/pkill/pkill.c
-U    src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs.h
-U    src/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_import.c
-U    src/cddl/usr.sbin/zfsd/zfsd_event.cc
-U    src/contrib/compiler-rt/lib/builtins/arm/aeabi_dcmp.S
-U    src/contrib/compiler-rt/lib/builtins/arm/aeabi_fcmp.S
-U    src/contrib/compiler-rt/lib/esan/esan_sideline_linux.cpp
-U    src/contrib/compiler-rt/lib/profile/InstrProfilingNameVar.c
-U   src/contrib/compiler-rt
-U   src/contrib/libc++
-"""
-
-x_xml_data = """<?xml version="1.0" encoding="UTF-8"?>
-<log>
-<logentry
-   revision="322826">
-<author>kevans</author>
-<date>2017-08-24T01:23:33.506520Z</date>
-<msg>bsdgrep: add a primitive literal matcher
-</msg>
-</logentry>
-</log>"""
-
-
 def valid_line(line):
     if line.startswith('U ') or \
        line.startswith('A ') or \