Update of /cvsroot/wisp/wisp/users/dig
In directory sc8-pr-cvs1:/tmp/cvs-serv29911
Modified Files:
linkie.py
Log Message:
minor cleanup
Index: linkie.py
===================================================================
RCS file: /cvsroot/wisp/wisp/users/dig/linkie.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- linkie.py 26 Apr 2003 17:40:59 -0000 1.37
+++ linkie.py 26 Apr 2003 17:42:08 -0000 1.38
@@ -109,7 +109,8 @@
starts in '&' or '%'.
Does NOT check uniqueness.
None signifies the current offset."""
- if type(symbol) <> StringType: raise 'Not a string', symbol
+ if not isinstance(symbol, str): raise 'Not a string', symbol
+ symbol = str(symbol)
if not symbol[0] in '#&!%':
raise 'unprefixed symbol being placed', symbol
if value == None: value = len(this._contents) + this._skipped
|