Package: bpython Version: 0.9.3-1 Severity: normal Tags: patch Hi,
setting a custom value for the configuration option 'hist_file' does not work. The program ignores it. Apparently, the developers seem to have forgotten to check for this configuration option. The attached patch should fix this. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages bpython depends on: ii python 2.5.4-2 An interactive high-level object-o ii python-pkg-resources 0.6c9-2 Package Discovery and Resource Acc ii python-pygments 1.0-2 syntax highlighting package writte bpython recommends no packages. bpython suggests no packages. -- debconf-show failed
diff -Naur bpython/cli.py bpython.new/cli.py --- bpython/cli.py 2009-07-19 00:12:17.000000000 +0200 +++ bpython.new/cli.py 2009-07-19 00:26:11.000000000 +0200 @@ -338,7 +338,7 @@ if not OPTS.arg_spec: return - pythonhist = os.path.expanduser('~/.pythonhist') + pythonhist = os.path.expanduser(OPTS.hist_file) if os.path.exists(pythonhist): with codecs.open(pythonhist, 'r', getpreferredencoding(), 'ignore') as hfile: @@ -1961,7 +1961,7 @@ repl.repl() if OPTS.hist_length: - histfilename = os.path.expanduser('~/.pythonhist') + histfilename = os.path.expanduser(OPTS.hist_file) with codecs.open(histfilename, 'w', getpreferredencoding(), 'ignore') as hfile: hfile.writelines(repl.rl_hist[-OPTS.hist_length:])