Refactor to run in both Python 2.7 and Python 3.6
Refactor to run in both Python 2.7 and Python 3.6. This is important as python 2.7 is end of life. I tried to edit as few things as possible in this commit to minimize conflicts which means the code could be prettier. Signed-off-by: Viktor Sjölind <viktor@sjolind.se>
This commit is contained in:
parent
2125b2d739
commit
96e6da2752
5 changed files with 80 additions and 74 deletions
2
Db.py
2
Db.py
|
@ -57,4 +57,4 @@ def add_log_message(channel, nickname, message_type, message = None):
|
|||
|
||||
def show_all_messages():
|
||||
for message in LogMessage.select():
|
||||
print "<%s> %s" % (message.nickname, message.message)
|
||||
print("<%s> %s" % (message.nickname, message.message))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue