Skip to content

Commit c8300a6

Browse files
author
Bob Farrell
committed
os.path.expanduser() fixed
Thanks to Klaus Alexander Seis for the patch for this one. committer: Bob Farrell <bob@keys.(none)>
1 parent 4fedab1 commit c8300a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎bpython.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python
2-
# bpython 0.3.0::fancy curses interface to the Python repl::Bob Farrell 2008
2+
# bpython 0.3.1::fancy curses interface to the Python repl::Bob Farrell 2008
33
#
44
# The MIT License
55
#
@@ -510,7 +510,7 @@ def write2file( self ):
510510
fn = self.statusbar.prompt( 'Save to file: ' )
511511

512512
if '~' in fn:
513-
fn = fn.replace( '~', os.path.expanduser('~') )
513+
fn = os.path.expanduser( fn )
514514

515515
s = self.getstdout()
516516

0 commit comments

Comments
 (0)