From 8176bd04166dcc855765e303b055d05fc9323b5d Mon Sep 17 00:00:00 2001 From: Joshua Boniface Date: Thu, 7 Jun 2018 00:30:20 -0400 Subject: [PATCH] Add some more comments and spaces for readability --- ansiiprint.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansiiprint.py b/ansiiprint.py index 3d85814e..c4103c62 100644 --- a/ansiiprint.py +++ b/ansiiprint.py @@ -40,8 +40,10 @@ def end(): # Print function def echo(message, prefix, state): + # Get the date date = '{} - '.format(time.strftime('%Y/%m/%d %H:%M:%S')) endc = end() + # Continuation if state == 'c': date = '' @@ -74,4 +76,5 @@ def echo(message, prefix, state): # Append space to prefix if prefix != '': prefix = prefix + ' ' + print(colour + prompt + endc + date + prefix + message)