mirror of
https://github.com/kennethreitz-archive/bpython-gist.git
synced 2026-06-05 23:50:18 +00:00
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:
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user