mirror of https://gitlab.com/baco/dotconf.git
Correct come PEP-008 issues
This commit is contained in:
parent
f16363adb1
commit
3dfa260484
|
@ -1,14 +1,15 @@
|
||||||
'''usage:
|
"""usage:
|
||||||
|
|
||||||
from myprompt import MyPrompts
|
from myprompt import MyPrompts
|
||||||
ip = get_ipython()
|
ip = get_ipython()
|
||||||
ip.prompts = MyPrompts(ip)
|
ip.prompts = MyPrompts(ip)
|
||||||
'''
|
"""
|
||||||
|
|
||||||
from IPython.terminal.prompts import Prompts, Token
|
from IPython.terminal.prompts import Prompts, Token
|
||||||
|
|
||||||
|
|
||||||
class MyPrompts(Prompts):
|
class MyPrompts(Prompts):
|
||||||
|
|
||||||
def in_prompt_tokens(self, cli=None):
|
def in_prompt_tokens(self, cli=None):
|
||||||
return [
|
return [
|
||||||
(Token.Prompt, '['),
|
(Token.Prompt, '['),
|
||||||
|
|
Loading…
Reference in New Issue