Add some more comments and spaces for readability
This commit is contained in:
@ -40,8 +40,10 @@ def end():
|
|||||||
|
|
||||||
# Print function
|
# Print function
|
||||||
def echo(message, prefix, state):
|
def echo(message, prefix, state):
|
||||||
|
# Get the date
|
||||||
date = '{} - '.format(time.strftime('%Y/%m/%d %H:%M:%S'))
|
date = '{} - '.format(time.strftime('%Y/%m/%d %H:%M:%S'))
|
||||||
endc = end()
|
endc = end()
|
||||||
|
|
||||||
# Continuation
|
# Continuation
|
||||||
if state == 'c':
|
if state == 'c':
|
||||||
date = ''
|
date = ''
|
||||||
@ -74,4 +76,5 @@ def echo(message, prefix, state):
|
|||||||
# Append space to prefix
|
# Append space to prefix
|
||||||
if prefix != '':
|
if prefix != '':
|
||||||
prefix = prefix + ' '
|
prefix = prefix + ' '
|
||||||
|
|
||||||
print(colour + prompt + endc + date + prefix + message)
|
print(colour + prompt + endc + date + prefix + message)
|
||||||
|
Reference in New Issue
Block a user