mirror of
https://github.com/powerline/powerline.git
synced 2025-07-30 17:25:28 +02:00
Rename PowerlineState to PowerlineLogger
This commit is contained in:
parent
587789ebda
commit
49618fc4e3
@ -23,7 +23,7 @@ def find_config_file(search_paths, config_file):
|
|||||||
raise IOError('Config file not found in search path: {0}'.format(config_file))
|
raise IOError('Config file not found in search path: {0}'.format(config_file))
|
||||||
|
|
||||||
|
|
||||||
class PowerlineState(object):
|
class PowerlineLogger(object):
|
||||||
def __init__(self, use_daemon_threads, logger, ext):
|
def __init__(self, use_daemon_threads, logger, ext):
|
||||||
self.logger = logger
|
self.logger = logger
|
||||||
self.ext = ext
|
self.ext = ext
|
||||||
@ -175,7 +175,7 @@ class Powerline(object):
|
|||||||
self.logger.addHandler(handler)
|
self.logger.addHandler(handler)
|
||||||
|
|
||||||
if not self.pl:
|
if not self.pl:
|
||||||
self.pl = PowerlineState(self.use_daemon_threads, self.logger, self.ext)
|
self.pl = PowerlineLogger(self.use_daemon_threads, self.logger, self.ext)
|
||||||
if not self.config_loader.pl:
|
if not self.config_loader.pl:
|
||||||
self.config_loader.pl = self.pl
|
self.config_loader.pl = self.pl
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ class Renderer(object):
|
|||||||
Keyword arguments for ``Theme`` class constructor.
|
Keyword arguments for ``Theme`` class constructor.
|
||||||
:param Colorscheme colorscheme:
|
:param Colorscheme colorscheme:
|
||||||
Colorscheme object that holds colors configuration.
|
Colorscheme object that holds colors configuration.
|
||||||
:param PowerlineState pl:
|
:param PowerlineLogger pl:
|
||||||
Object used for logging.
|
Object used for logging.
|
||||||
:param int ambiwidth:
|
:param int ambiwidth:
|
||||||
Width of the characters with east asian width unicode attribute equal to
|
Width of the characters with east asian width unicode attribute equal to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user