diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-09-18 12:49:25 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-09-18 12:49:25 (GMT) |
commit | 9e27eda32522777a41526c2f81c93889f6675ab7 (patch) | |
tree | 783ce5a7c5d6fd526a4801344319a1fd3577fbc4 | |
parent | 137b572d55af5e6777a766de4d595cbff111d0c3 (diff) | |
download | cpython-9e27eda32522777a41526c2f81c93889f6675ab7.zip cpython-9e27eda32522777a41526c2f81c93889f6675ab7.tar.gz cpython-9e27eda32522777a41526c2f81c93889f6675ab7.tar.bz2 |
#14984: only import pwd on POSIX.
-rw-r--r-- | Lib/netrc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/netrc.py b/Lib/netrc.py index 2b45bc2..ce6f4dd 100644 --- a/Lib/netrc.py +++ b/Lib/netrc.py @@ -2,7 +2,9 @@ # Module and documentation by Eric S. Raymond, 21 Dec 1998 -import os, stat, shlex, pwd +import os, stat, shlex +if os.name == 'posix': + import pwd __all__ = ["netrc", "NetrcParseError"] |