File: python3

package info (click to toggle)
dstat 0.7.4-6.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,608 kB
  • sloc: python: 5,964; makefile: 70; sh: 3
file content (41 lines) | stat: -rw-r--r-- 1,636 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Description: use python3
Author: Emanuele Rocca <ema@debian.org>
Bug-Debian: https://bugs.debian.org/857973
Last-Update: 2019-07-29

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