]> git.saurik.com Git - wxWidgets.git/commitdiff
Use a unique namespace for generating identifiers.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Wed, 15 Sep 2010 11:45:32 +0000 (11:45 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Wed, 15 Sep 2010 11:45:32 +0000 (11:45 +0000)
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

build/osx/fix_xcode_ids.py

index 7e3a22413fd24a5f812c75c901a98a305b9143c8..23dbe250dd0315b8dcab0e9428de7ae67d8596fa 100755 (executable)
@@ -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