Merge #14984: only import pwd on POSIX.

This commit is contained in:
R David Murray 2013-09-18 08:54:00 -04:00
commit 4b49ae61d8
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 io, os, shlex, stat, pwd
import os, shlex, stat
if os.name == 'posix':
import pwd
__all__ = ["netrc", "NetrcParseError"]