]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#14984: only import pwd on POSIX.
authorR David Murray <rdmurray@bitdance.com>
Wed, 18 Sep 2013 12:52:38 +0000 (08:52 -0400)
committerR David Murray <rdmurray@bitdance.com>
Wed, 18 Sep 2013 12:52:38 +0000 (08:52 -0400)
Lib/netrc.py

index 8fe4ceed4d7455d615eb2b1c8e96f51f4a74ceb0..2aa48f32cd508538b8e883c4df7e1a2e7bd9df54 100644 (file)
@@ -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"]