#14984: only import pwd on POSIX.

This commit is contained in:
R David Murray 2013-09-18 08:49:25 -04:00
parent 137b572d55
commit 9e27eda325
1 changed files with 3 additions and 1 deletions

View File

@ -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"]