commit | 8bea9a5b13330ea0f18652cdfec3ae15488d7e9d | [log] [tgz] |
---|---|---|
author | Éric Araujo <merwok@netwok.org> | Sat Mar 26 01:24:47 2011 +0100 |
committer | Éric Araujo <merwok@netwok.org> | Sat Mar 26 01:24:47 2011 +0100 |
tree | 8a47ffaf245ae217e4ca4bc236e0170a31d5cfed | |
parent | 9aa5a34b6b38ef9eec67f80a8f105c8c5a7a9c10 [diff] [blame] |
Use universal construct os.path.expanduser('~') instead of os.environ['HOME']
diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index f6e855e..64c61a2 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst
@@ -211,7 +211,7 @@ import os import readline - histfile = os.path.join(os.environ["HOME"], ".pyhist") + histfile = os.path.join(os.path.expanduser("~"), ".pyhist") try: readline.read_history_file(histfile) except IOError: