commit dstat for openSUSE:Factory
Hello community,
here is the log from the commit of package dstat for openSUSE:Factory checked in at 2019-07-04 15:43:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/dstat (Old)
and /work/SRC/openSUSE:Factory/.dstat.new.4615 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dstat"
Thu Jul 4 15:43:04 2019 rev:9 rq:713079 version:0.7.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/dstat/dstat.changes 2019-06-13 23:03:15.591397941 +0200
+++ /work/SRC/openSUSE:Factory/.dstat.new.4615/dstat.changes 2019-07-04 15:43:05.574092469 +0200
@@ -1,0 +2,6 @@
+Tue Jul 2 14:28:44 UTC 2019 - Stefan Brüns
From 4afc0e352640bb278755beaab81cb2e935f5f1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Br=C3=BCns?=
Date: Tue, 2 Jul 2019 16:28:07 +0200 Subject: [PATCH] Use python3 compatible way of checking instance type
Previously, "dstat --output file ..." failed on python3. --- dstat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dstat b/dstat index 9359965..df37911 100755 --- a/dstat +++ b/dstat @@ -541,12 +541,12 @@ class dstat: line = '' for i, name in enumerate(self.vars): - if isinstance(self.val[name], types.ListType) or isinstance(self.val[name], types.TupleType): + if isinstance(self.val[name], (list, type)): for j, val in enumerate(self.val[name]): line = line + printcsv(val) if j + 1 != len(self.val[name]): line = line + char['sep'] - elif isinstance(self.val[name], types.StringType): + elif isinstance(self.val[name], str): line = line + self.val[name] else: line = line + printcsv(self.val[name]) -- 2.22.0
participants (1)
-
root