expanduser more correct

Now it checks if fn.startswith('~'), rather than checking if there's a ~
in the string at all.
This commit is contained in:
Bob Farrell
2008-04-29 02:05:24 +01:00
parent 8421581d96
commit b509791910
+1 -1
View File
@@ -510,7 +510,7 @@ class Repl:
fn = self.statusbar.prompt( 'Save to file: ' )
if '~' in fn:
if fn.startswith('~'):
fn = os.path.expanduser( fn )
s = self.getstdout()