diff -Nru dstat-0.7.4/debian/changelog dstat-0.7.4/debian/changelog --- dstat-0.7.4/debian/changelog 2019-08-04 18:47:20.000000000 +0000 +++ dstat-0.7.4/debian/changelog 2021-04-07 20:31:28.000000000 +0000 @@ -1,3 +1,11 @@ +dstat (0.7.4-6.1) unstable; urgency=medium + + * Non-maintainer upload. + * Apply patch to fix SyntaxWarnings from python3.9. (Closes: #976678) + Thanks: Cam Hutchison, Andres Salomon + + -- Chris Hofstaedtler Wed, 07 Apr 2021 20:31:28 +0000 + dstat (0.7.4-6) unstable; urgency=medium * debian/patches/make-test-no-plugins: there is a misterious failure to test diff -Nru dstat-0.7.4/debian/patches/python3 dstat-0.7.4/debian/patches/python3 --- dstat-0.7.4/debian/patches/python3 2019-07-29 11:41:41.000000000 +0000 +++ dstat-0.7.4/debian/patches/python3 2021-04-07 20:31:28.000000000 +0000 @@ -3,13 +3,39 @@ Bug-Debian: https://bugs.debian.org/857973 Last-Update: 2019-07-29 -diff --git a/dstat b/dstat -index 9359965..f250f06 100755 ---- a/dstat -+++ b/dstat +Index: dstat/dstat +=================================================================== +--- dstat.orig/dstat ++++ dstat/dstat @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ### This program is free software; you can redistribute it and/or ### modify it under the terms of the GNU General Public License +Index: dstat/plugins/dstat_mysql_keys.py +=================================================================== +--- dstat.orig/plugins/dstat_mysql_keys.py ++++ dstat/plugins/dstat_mysql_keys.py +@@ -38,7 +38,7 @@ class dstat_plugin(dstat): + for name in self.vars: self.val[name] = -1 + + except Exception as e: +- if op.debug > 1: print('%s: exception' (self.filename, e)) ++ if op.debug > 1: print('%s: exception: %s' % (self.filename, e)) + for name in self.vars: self.val[name] = -1 + + # vim:ts=4:sw=4:et +Index: dstat/plugins/dstat_squid.py +=================================================================== +--- dstat.orig/plugins/dstat_squid.py ++++ dstat/plugins/dstat_squid.py +@@ -45,7 +45,7 @@ class dstat_plugin(dstat): + if op.debug > 1: print('%s: lost pipe to squidclient, %s' % (self.filename, e)) + for name in self.vars: self.val[name] = -1 + except Exception as e: +- if op.debug > 1: print('%s: exception' (self.filename, e)) ++ if op.debug > 1: print('%s: exception: %s' % (self.filename, e)) + for name in self.vars: self.val[name] = -1 + + # vim:ts=4:sw=4:et