commit | f1c1cd9b3b457feeab41123da6d0d9a0040727b4 | [log] [tgz] |
---|---|---|
author | R David Murray <rdmurray@bitdance.com> | Wed Sep 18 08:50:11 2013 -0400 |
committer | R David Murray <rdmurray@bitdance.com> | Wed Sep 18 08:50:11 2013 -0400 |
tree | 93f4b2401bacbdbe316765857b0eccd9944ad1bc | |
parent | c64566e30fd4051d62b124a13f65fdd1910a7481 [diff] | |
parent | 9e27eda32522777a41526c2f81c93889f6675ab7 [diff] |
Merge #14984: only import pwd on POSIX.
diff --git a/Lib/netrc.py b/Lib/netrc.py index a243c37..4b18973 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"]