Update documentation for `Powerline.init`

This commit is contained in:
ZyX 2014-08-16 18:30:25 +04:00
parent 94354475b5
commit fe7aad7695
1 changed files with 5 additions and 1 deletions

View File

@ -350,7 +350,11 @@ class Powerline(object):
config_loader=None):
'''Do actual initialization.
__init__ function only stores the arguments.
__init__ function only stores the arguments and runs this function. This
function exists for powerline to be able to reload itself: it is easier
to make ``__init__`` store arguments and call overriddable ``init`` than
tell developers that each time they override Powerline.__init__ in
subclasses they must store actual arguments.
'''
self.ext = ext
self.run_once = run_once