Add some more comments and spaces for readability

This commit is contained in:
Joshua Boniface 2018-06-07 00:30:20 -04:00
parent 79fd22305c
commit 8176bd0416
1 changed files with 3 additions and 0 deletions

View File

@ -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)