Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
fix for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
David Whiteside committed Nov 28, 2016
1 parent 5162997 commit d12e3a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tracknodes/tracknodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d12e3a5

Please sign in to comment.