Use a unique namespace for generating identifiers.
Instead of using uuid.NAMESPACE_DNS as namespace use a newly generated UUID. Also minor cleanup of import uuid statement. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -11,7 +11,6 @@
 | 
			
		||||
 | 
			
		||||
import sys
 | 
			
		||||
import re
 | 
			
		||||
import uuid
 | 
			
		||||
 | 
			
		||||
USAGE = """fix_xcode_ids - Modifies an Xcode project in-place to use the same identifiers (based on name) instead of being different on each regeneration"
 | 
			
		||||
Usage: fix_xcode_ids xcode_proj_dir"""
 | 
			
		||||
@@ -51,7 +50,8 @@ dict = rc.findall(strIn)
 | 
			
		||||
 | 
			
		||||
# convert a name to an identifier for Xcode
 | 
			
		||||
def toUuid(name):
 | 
			
		||||
    return uuid.uuid3(uuid.NAMESPACE_DNS, name).hex[:24].upper()
 | 
			
		||||
    from uuid import uuid3, UUID
 | 
			
		||||
    return uuid3(UUID("349f853c-91f8-4eba-b9b9-5e9f882e693c"), name).hex[:24].upper()
 | 
			
		||||
 | 
			
		||||
for s in dict:
 | 
			
		||||
    # s[0] is the original ID, s[1] is the name
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user