diff options
author | Jacek Antonelli | 2009-09-03 00:59:17 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-09-03 00:59:17 -0500 |
commit | 428d872be7b0896f85dd5bbd83df8a2d2f429b42 (patch) | |
tree | c955a5af8a4b76b94d4029d3ced3133edc977b28 /linden/indra/lib/python | |
parent | Merge branch 'mac-openal-url' into next (diff) | |
download | meta-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.py | 5 | ||||
-rw-r--r-- | linden/indra/lib/python/indra/ipc/llmessage.py | 6 |
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 | ||
29 | import md5, random, socket, string, time, re | 29 | import random, socket, string, time, re |
30 | from hashlib import md5 | ||
30 | import uuid | 31 | import uuid |
31 | 32 | ||
32 | def _int2binstr(i,l): | 33 | def _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 | ||
29 | from sets import Set, ImmutableSet | ||
30 | |||
31 | from compatibility import Incompatible, Older, Newer, Same | 29 | from compatibility import Incompatible, Older, Newer, Same |
32 | from tokenstream import TokenStream | 30 | from 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() |