Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd274eba

Browse files
kdartthomasballinger
authored andcommitted
Remove pretty print feature. make bpdb the default.
1 parentb37d832 commitd274eba

File tree

4 files changed

+2
-11
lines changed

4 files changed

+2
-11
lines changed

‎bpython/args.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ def parse(args, extras=None, ignore_stdin=False):
7474
help=_("Don't flush the output to stdout."))
7575
parser.add_option('--version','-V',action='store_true',
7676
help=_('Print version and exit.'))
77-
parser.add_option('--pretty','-p',action='store_true',
78-
help=_('Pretty print output.'))
7977
parser.add_option('--debugger','-D',action='store_true',
8078
help=_('Enter a debugger on exceptions.'))
8179

‎bpython/cli.py‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
importre
5050
importtime
5151
importfunctools
52-
frompprintimportpprint
5352

5453
importstruct
5554
ifplatform.system()!='Windows':
@@ -1954,10 +1953,6 @@ def main_curses(scr, args, config, interactive=True, locals_=None,
19541953
return (exit_value,clirepl.getstdout())
19551954

19561955

1957-
defprettydisplayhook(obj):
1958-
pprint(obj)
1959-
1960-
19611956
defdebugger_hook(exc,value,tb):
19621957

19631958
ifexcin (SyntaxError,IndentationError,KeyboardInterrupt):
@@ -2004,8 +1999,6 @@ def main(args=None, locals_=None, banner=None):
20041999

20052000
ifoptions.debugger:
20062001
sys.excepthook=debugger_hook
2007-
ifoptions.pretty:
2008-
sys.displayhook=prettydisplayhook
20092002

20102003
try:
20112004
(exit_value,output)=curses_wrapper(

‎bpython/config.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def loadini(struct, configfile):
9999
'clear_word':'C-w',
100100
'copy_clipboard':'F10',
101101
'cut_to_buffer':'C-k',
102+
'debug':'F12',
102103
'delete':'C-d',
103104
'down_one_line':'C-n',
104105
'edit_config':'F3',
@@ -123,7 +124,6 @@ def loadini(struct, configfile):
123124
'undo':'C-r',
124125
'up_one_line':'C-p',
125126
'yank_from_buffer':'C-y',
126-
'debug':'F12',
127127
},
128128
'cli': {
129129
'suggestion_width':0.8,

‎bpython/debugger.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
def_get_debugger():
2323
globalpost_mortem
24-
modname=os.environ.get("PYTHON_DEBUGGER","pdb")
24+
modname=os.environ.get("PYTHON_DEBUGGER","bpdb")
2525
__import__(modname)
2626
mod=sys.modules[modname]
2727
pm=getattr(mod,"post_mortem")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp