X Tutup
Skip to content

Commit ce214d2

Browse files
committed
Made paste_time configurable
1 parent 85dd4c8 commit ce214d2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bpython/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def __init__(self, scr, interp, statusbar=None, idle=None):
514514
sys.stdin = FakeStdin(self)
515515
self.paste_mode = False
516516
self.last_key_press = time.time()
517-
self.paste_time = 0.02
517+
self.paste_time = float(OPTS.paste_time)
518518
self.prev_block_finished = 0
519519
sys.path.insert(0, '.')
520520

bpython/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ def loadini(struct, configfile):
5656
True)
5757
struct.syntax = config.safeget('general', 'syntax', True)
5858
struct.arg_spec = config.safeget('general', 'arg_spec', True)
59+
struct.paste_time = config.safeget('general', 'paste_time', 0.02)
5960
struct.hist_file = config.safeget('general', 'hist_file', '~/.pythonhist')
6061
struct.hist_length = config.safeget('general', 'hist_length', 100)
6162
struct.flush_output = config.safeget('general', 'flush_output', True)

0 commit comments

Comments
 (0)
X Tutup