diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-12-30 21:09:42 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-12-30 21:09:42 (GMT) |
commit | 5d4e27ecee12c2c2dc33b31a6128bcf4297574ac (patch) | |
tree | 6c24764f3b2792bc93910773cf8a602b9c476b9e /Lib/pathlib.py | |
parent | 8477ed60486a22f79f257ee49f0bc18d0e73f216 (diff) | |
download | cpython-5d4e27ecee12c2c2dc33b31a6128bcf4297574ac.zip cpython-5d4e27ecee12c2c2dc33b31a6128bcf4297574ac.tar.gz cpython-5d4e27ecee12c2c2dc33b31a6128bcf4297574ac.tar.bz2 |
whitespace
Diffstat (limited to 'Lib/pathlib.py')
-rw-r--r-- | Lib/pathlib.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/pathlib.py b/Lib/pathlib.py index d8ec118..6244932 100644 --- a/Lib/pathlib.py +++ b/Lib/pathlib.py @@ -227,11 +227,11 @@ class _WindowsFlavour(_Flavour): elif 'USERPROFILE' in os.environ: userhome = os.environ['USERPROFILE'] elif 'HOMEPATH' in os.environ: - try: - drv = os.environ['HOMEDRIVE'] - except KeyError: - drv = '' - userhome = drv + os.environ['HOMEPATH'] + try: + drv = os.environ['HOMEDRIVE'] + except KeyError: + drv = '' + userhome = drv + os.environ['HOMEPATH'] else: raise RuntimeError("Can't determine home directory") |