PEP-8, tweaks to .time and a new library (soon to be expanded)
This commit is contained in:
parent
e959c27d66
commit
a9927eca90
2 changed files with 14 additions and 6 deletions
7
plugins/util/formatting.py
Executable file
7
plugins/util/formatting.py
Executable file
|
@ -0,0 +1,7 @@
|
|||
""" formatting.py - handy functions for formatting text """
|
||||
|
||||
def capitalize_first(line):
|
||||
""" capitalises the first letter of words
|
||||
(keeps other letters intact)
|
||||
"""
|
||||
return ' '.join([s[0].upper() + s[1:] for s in line.split(' ')])
|
Reference in a new issue