mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									dcdf48a5c7
								
							
						
					
					
						commit
						96cad2ea47
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,7 @@ Author: Mark W. Alexander <slash@dotnet.net>
 | 
			
		|||
Implements the Distutils 'bdist_pkgtool' command (create Solaris pkgtool
 | 
			
		||||
distributions)."""
 | 
			
		||||
 | 
			
		||||
import os, string, sys, pwd, grp
 | 
			
		||||
import os, string, sys
 | 
			
		||||
from types import *
 | 
			
		||||
from distutils.util import get_platform
 | 
			
		||||
from distutils.file_util import write_file
 | 
			
		||||
| 
						 | 
				
			
			@ -281,6 +281,7 @@ class bdist_pkgtool (bdist_packager.bdist_packager):
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
    def _make_prototype(self):
 | 
			
		||||
        import pwd, grp
 | 
			
		||||
        proto_file = ["i pkginfo"]
 | 
			
		||||
        if self.request:
 | 
			
		||||
            proto_file.extend(['i request'])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue