PEP-8, tweaks to .time and a new library (soon to be expanded)

This commit is contained in:
Luke Rogers 2012-04-21 02:35:35 +12:00
parent e959c27d66
commit a9927eca90
2 changed files with 14 additions and 6 deletions

7
plugins/util/formatting.py Executable file
View 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(' ')])