aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/lib/python')
-rw-r--r--linden/indra/lib/python/indra/base/lluuid.py5
-rw-r--r--linden/indra/lib/python/indra/ipc/llmessage.py6
-rw-r--r--linden/indra/lib/python/indra/util/llversion.py15
3 files changed, 11 insertions, 15 deletions
diff --git a/linden/indra/lib/python/indra/base/lluuid.py b/linden/indra/lib/python/indra/base/lluuid.py
index aceea29..40ce818 100644
--- a/linden/indra/lib/python/indra/base/lluuid.py
+++ b/linden/indra/lib/python/indra/base/lluuid.py
@@ -26,7 +26,8 @@ THE SOFTWARE.
26$/LicenseInfo$ 26$/LicenseInfo$
27""" 27"""
28 28
29import md5, random, socket, string, time, re 29import random, socket, string, time, re
30from hashlib import md5
30import uuid 31import uuid
31 32
32def _int2binstr(i,l): 33def _int2binstr(i,l):
@@ -196,7 +197,7 @@ class UUID(object):
196 from c++ implementation for portability reasons. 197 from c++ implementation for portability reasons.
197 Returns self. 198 Returns self.
198 """ 199 """
199 m = md5.new() 200 m = md5()
200 m.update(uuid.uuid1().bytes) 201 m.update(uuid.uuid1().bytes)
201 self._bits = m.digest() 202 self._bits = m.digest()
202 return self 203 return self
diff --git a/linden/indra/lib/python/indra/ipc/llmessage.py b/linden/indra/lib/python/indra/ipc/llmessage.py
index 6161bad..91fb36b 100644
--- a/linden/indra/lib/python/indra/ipc/llmessage.py
+++ b/linden/indra/lib/python/indra/ipc/llmessage.py
@@ -26,8 +26,6 @@ THE SOFTWARE.
26$/LicenseInfo$ 26$/LicenseInfo$
27""" 27"""
28 28
29from sets import Set, ImmutableSet
30
31from compatibility import Incompatible, Older, Newer, Same 29from compatibility import Incompatible, Older, Newer, Same
32from tokenstream import TokenStream 30from tokenstream import TokenStream
33 31
@@ -44,8 +42,8 @@ class Template:
44 42
45 def compatibleWithBase(self, base): 43 def compatibleWithBase(self, base):
46 messagenames = ( 44 messagenames = (
47 ImmutableSet(self.messages.keys()) 45 frozenset(self.messages.keys())
48 | ImmutableSet(base.messages.keys()) 46 | frozenset(base.messages.keys())
49 ) 47 )
50 48
51 compatibility = Same() 49 compatibility = Same()
diff --git a/linden/indra/lib/python/indra/util/llversion.py b/linden/indra/lib/python/indra/util/llversion.py
index 77fa5a2..aedb947 100644
--- a/linden/indra/lib/python/indra/util/llversion.py
+++ b/linden/indra/lib/python/indra/util/llversion.py
@@ -45,18 +45,15 @@ def get_version_file_contents(version_type):
45 45
46def get_version(version_type, revision=0): 46def get_version(version_type, revision=0):
47 file_str = get_version_file_contents(version_type) 47 file_str = get_version_file_contents(version_type)
48 m = re.search('const S32 LL_VERSION_MAJOR = (\d+);', file_str) 48 m = re.search('const S32 IMP_VERSION_MAJOR = (\d+);', file_str)
49 VER_MAJOR = m.group(1) 49 VER_MAJOR = m.group(1)
50 m = re.search('const S32 LL_VERSION_MINOR = (\d+);', file_str) 50 m = re.search('const S32 IMP_VERSION_MINOR = (\d+);', file_str)
51 VER_MINOR = m.group(1) 51 VER_MINOR = m.group(1)
52 m = re.search('const S32 LL_VERSION_PATCH = (\d+);', file_str) 52 m = re.search('const S32 IMP_VERSION_PATCH = (\d+);', file_str)
53 VER_PATCH = m.group(1) 53 VER_PATCH = m.group(1)
54 if revision > 0: 54 m = re.search('const S32 IMP_VERSION_TEST = (\d+);', file_str)
55 VER_BUILD = revision 55 VER_BUILD = m.group(1)
56 else: 56 version = "%(VER_MAJOR)s.%(VER_MINOR)s.%(VER_PATCH)s.%(VER_TEST)s" % locals()
57 m = re.search('const S32 LL_VERSION_BUILD = (\d+);', file_str)
58 VER_BUILD = m.group(1)
59 version = "%(VER_MAJOR)s.%(VER_MINOR)s.%(VER_PATCH)s.%(VER_BUILD)s" % locals()
60 return version 57 return version
61 58
62def get_channel(version_type): 59def get_channel(version_type):