Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96cad2e

Browse files
committed
This module broke on the Mac (where it can't work, but distutils seems to import it anyway) because it imported pwd and grp. Moved the import to inside the routine where they're used.
1 parent dcdf48a commit 96cad2e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/distutils/command/bdist_pkgtool.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Implements the Distutils 'bdist_pkgtool' command (create Solaris pkgtool
77
distributions)."""
88

9-
import os, string, sys, pwd, grp
9+
import os, string, sys
1010
from types import *
1111
from distutils.util import get_platform
1212
from distutils.file_util import write_file
@@ -281,6 +281,7 @@ def run (self):
281281

282282

283283
def _make_prototype(self):
284+
import pwd, grp
284285
proto_file = ["i pkginfo"]
285286
if self.request:
286287
proto_file.extend(['i request'])

0 commit comments

Comments
 (0)