diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-09-18 12:53:26 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-09-18 12:53:26 (GMT) |
commit | 58bf8d2a688cf0fe180ed929568d0294a32ef5de (patch) | |
tree | c27939d38c2edb75b5de9febe8a032b263d9b2b4 | |
parent | 8270a2c209836c49fb2909c3af6117c46439b86e (diff) | |
parent | 505be2146fcee88b71899136a808173f588f9628 (diff) | |
download | cpython-58bf8d2a688cf0fe180ed929568d0294a32ef5de.zip cpython-58bf8d2a688cf0fe180ed929568d0294a32ef5de.tar.gz cpython-58bf8d2a688cf0fe180ed929568d0294a32ef5de.tar.bz2 |
Merge #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 8fe4cee..2aa48f3 100644 --- a/Lib/netrc.py +++ b/Lib/netrc.py @@ -2,7 +2,9 @@ # Module and documentation by Eric S. Raymond, 21 Dec 1998 -import io, os, shlex, stat, pwd +import os, shlex, stat +if os.name == 'posix': + import pwd __all__ = ["netrc", "NetrcParseError"] |