Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv30661
Modified Files:
linkie.py
Log Message:
minor cleanup
Index: linkie.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/linkie.py,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- linkie.py 26 Apr 2003 17:43:04 -0000 1.39
+++ linkie.py 26 Apr 2003 17:44:25 -0000 1.40
@@ -7,7 +7,6 @@
#### @(#) $Id$
from bits import Bits
-from types import StringType
from array import array
class Linkie (Bits):
@@ -36,7 +35,7 @@
for a in addends:
if relative:
s = -size; relative -= 1
- if type(a) != StringType: raise 'relative non-symbol?', a
+ if not isinstance(a, str): raise 'relative non-symbol?', a
else: s = size
if isinstance(a, int): # local reference
if this._locals[a] <> None: # backwards
|