#14984: only import pwd on POSIX.
This commit is contained in:
parent
137b572d55
commit
9e27eda325
|
@ -2,7 +2,9 @@
|
||||||
|
|
||||||
# Module and documentation by Eric S. Raymond, 21 Dec 1998
|
# 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"]
|
__all__ = ["netrc", "NetrcParseError"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue