commit | 9e27eda32522777a41526c2f81c93889f6675ab7 | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Wed Sep 18 08:49:25 2013 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Wed Sep 18 08:49:25 2013 -0400 |
tree | 783ce5a7c5d6fd526a4801344319a1fd3577fbc4 | |
parent | 137b572d55af5e6777a766de4d595cbff111d0c3 [diff] [blame] |
#14984: only import pwd on POSIX.
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"]