From d12e3a56bd923314e68fdddfa05be35a94b4f5b1 Mon Sep 17 00:00:00 2001 From: David Whiteside Date: Mon, 28 Nov 2016 14:21:55 -0700 Subject: [PATCH] fix for python3 --- lib/tracknodes/tracknodes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/tracknodes/tracknodes.py b/lib/tracknodes/tracknodes.py index 1093a9a..c97a892 100644 --- a/lib/tracknodes/tracknodes.py +++ b/lib/tracknodes/tracknodes.py @@ -195,13 +195,13 @@ def print_history(self): Print database information to STDOUT """ try: - print "-- History of Node Failures--" + print("-- History of Node Failures--") self.cur.execute("SELECT * FROM NodeStates ORDER BY datetime(Time) DESC") rows = self.cur.fetchall() for row in rows: print "%s | %s | %s | '%s'" % (row[0], row[3], TrackNodes.decode_state(row[1]), row[2]) - print "-- --" - print " " + print("-- --") + print(" ") except IOError as e: if e.errno == errno.EPIPE: # Perhaps output was piped to less and was quit prior to EOF