summaryrefslogtreecommitdiffstats
path: root/Doc/library/readline.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-03-25 19:31:50 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-03-25 19:31:50 (GMT)
commit4dcf50250c24748b4a49bc4482752eb382d663ee (patch)
tree5c7fd93966ed660b5f7b8837cf22440226f07b0b /Doc/library/readline.rst
parentebbf1e67a8c56a79ee62280d32517e77b103bf8e (diff)
downloadcpython-4dcf50250c24748b4a49bc4482752eb382d663ee.zip
cpython-4dcf50250c24748b4a49bc4482752eb382d663ee.tar.gz
cpython-4dcf50250c24748b4a49bc4482752eb382d663ee.tar.bz2
Use universal construct os.path.expanduser('~') instead of os.environ['HOME']
Diffstat (limited to 'Doc/library/readline.rst')
-rw-r--r--Doc/library/readline.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst
index 218f81e..ab7b4b6 100644
--- a/Doc/library/readline.rst
+++ b/Doc/library/readline.rst
@@ -197,7 +197,7 @@ normally be executed automatically during interactive sessions from the user's
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: