From a99dbd9eba7a0b9af0b8c2c44cac9fcf55a59cc7 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Wed, 15 Sep 2010 11:45:32 +0000 Subject: [PATCH] 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 --- build/osx/fix_xcode_ids.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/osx/fix_xcode_ids.py b/build/osx/fix_xcode_ids.py index 7e3a22413f..23dbe250dd 100755 --- a/build/osx/fix_xcode_ids.py +++ b/build/osx/fix_xcode_ids.py @@ -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 -- 2.50.0