os.path.expanduser() fixed

Thanks to Klaus Alexander Seis for the patch for this one.
This commit is contained in:
Bob Farrell
2008-04-28 16:20:31 +01:00
parent 5c84feb9db
commit 72ac830f04
+2 -2
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# bpython 0.3.0::fancy curses interface to the Python repl::Bob Farrell 2008
# bpython 0.3.1::fancy curses interface to the Python repl::Bob Farrell 2008
#
# The MIT License
#
@@ -510,7 +510,7 @@ class Repl:
fn = self.statusbar.prompt( 'Save to file: ' )
if '~' in fn:
fn = fn.replace( '~', os.path.expanduser('~') )
fn = os.path.expanduser( fn )
s = self.getstdout()