aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lib/python
diff options
context:
space:
mode:
authorJacek Antonelli2009-09-03 00:59:17 -0500
committerJacek Antonelli2009-09-03 00:59:17 -0500
commit428d872be7b0896f85dd5bbd83df8a2d2f429b42 (patch)
treec955a5af8a4b76b94d4029d3ced3133edc977b28 /linden/indra/lib/python
parentMerge branch 'mac-openal-url' into next (diff)
downloadmeta-impy-428d872be7b0896f85dd5bbd83df8a2d2f429b42.zip
meta-impy-428d872be7b0896f85dd5bbd83df8a2d2f429b42.tar.gz
meta-impy-428d872be7b0896f85dd5bbd83df8a2d2f429b42.tar.bz2
meta-impy-428d872be7b0896f85dd5bbd83df8a2d2f429b42.tar.xz
Updated some python scripts to not use deprecated modules.
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
2 files changed, 5 insertions, 6 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()