Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for python 3.9 #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xontrib/powerline2.xsh
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ def pl_build_prompt():
if varname not in __xonsh__.env:
__xonsh__.env[varname] = __xonsh__.env[defname]

$PL_EXTRA_SEC = $PL_DEFAULT_EXTRA_SEC if 'PL_EXTRA_SEC' not in ${...} else $PL_EXTRA_SEC
$PL_EXTRA_SEC = $PL_DEFAULT_EXTRA_SEC if ('PL_EXTRA_SEC' not in ${...} or isinstance($PL_EXTRA_SEC, str)) else $PL_EXTRA_SEC
add_section($PL_EXTRA_SEC)
if 'PL_COLORS' not in ${...}:
if 'PL_COLORS' not in ${...} or isinstance($PL_COLORS, str):
$PL_COLORS = $PL_DEFAULT_COLORS
else:
$PL_DEFAULT_COLORS.update($PL_COLORS)
Expand Down