summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/netrc.py4
1 files changed, 3 insertions, 1 deletions
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"]