#14984: only import pwd on POSIX.

This commit is contained in:
R David Murray 2013-09-18 08:52:38 -04:00
parent 104aab956f
commit 505be2146f
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"]