Release 2.5.2

- Fixed ipython-5.2* support
This commit is contained in:
Foo 2017-02-05 13:44:43 +03:00
commit 067261e613
2 changed files with 6 additions and 4 deletions

View File

@ -23,7 +23,8 @@ class ConfigurableIPythonPowerline(IPythonPowerline):
def do_setup(self, ip, prompts, shutdown_hook):
prompts.powerline = self
saved_msfn = ip._make_style_from_name
msfn_missing = ()
saved_msfn = getattr(ip, '_make_style_from_name', msfn_missing)
if hasattr(saved_msfn, 'powerline_original'):
saved_msfn = saved_msfn.powerline_original
@ -43,7 +44,8 @@ class ConfigurableIPythonPowerline(IPythonPowerline):
_saved_msfn = saved_msfn
saved_msfn = lambda: _saved_msfn(ip)
ip._make_style_from_name = _make_style_from_name
if saved_msfn is not msfn_missing:
ip._make_style_from_name = _make_style_from_name
magics = PowerlineMagics(ip, self)
ip.register_magics(magics)

View File

@ -59,7 +59,7 @@ else:
def get_version():
base_version = '2.5.1'
base_version = '2.5.2'
base_version += '.dev9999'
try:
return base_version + '+git.' + str(subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip())
@ -70,7 +70,7 @@ def get_version():
setup(
name='powerline-status',
version='2.5.1',
version='2.5.2',
description='The ultimate statusline/prompt utility.',
long_description=README,
classifiers=[