changeset: 85753:b8206cb2c4ee branch: 3.3 parent: 85746:68e5e416e8af parent: 85752:ef90c40fe6cf user: R David Murray date: Wed Sep 18 08:54:00 2013 -0400 description: Merge #14984: only import pwd on POSIX. diff -r 68e5e416e8af -r b8206cb2c4ee Lib/netrc.py --- a/Lib/netrc.py Wed Sep 18 08:34:40 2013 -0400 +++ b/Lib/netrc.py Wed Sep 18 08:54:00 2013 -0400 @@ -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"]

AltStyle によって変換されたページ (->オリジナル) /