[Wisp-cvs] wisp/users/dig linkie.py,1.36,1.37
Status: Alpha
Brought to you by:
digg
From: <di...@us...> - 2003-04-26 17:41:03
|
Update of /cvsroot/wisp/wisp/users/dig In directory sc8-pr-cvs1:/tmp/cvs-serv29427 Modified Files: linkie.py Log Message: minor cleanup Index: linkie.py =================================================================== RCS file: /cvsroot/wisp/wisp/users/dig/linkie.py,v retrieving revision 1.36 retrieving revision 1.37 diff -u -d -r1.36 -r1.37 --- linkie.py 26 Apr 2003 17:36:17 -0000 1.36 +++ linkie.py 26 Apr 2003 17:40:59 -0000 1.37 @@ -7,7 +7,7 @@ #### @(#) $Id$ from bits import Bits -from types import IntType, StringType +from types import StringType from array import array class Linkie (Bits): @@ -38,7 +38,7 @@ s = -size; relative -= 1 if type(a) != StringType: raise 'relative non-symbol?', a else: s = size - if type(a) == IntType: # local reference + if isinstance(a, int): # local reference if this._locals[a] <> None: # backwards delta += this._locals[a] else: # forwards |