TypeError: first argument must be string or compiled pattern
Python 2.3.4 /usr/bin/python2
A problem occurred while running a Python script. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call first. The exception attributes are: __doc__ = 'Inappropriate argument type.' __getitem__ = <bound method TypeError.__getitem__ of <exceptions.TypeError instance at 0x2a95e46128>> __init__ = <bound method TypeError.__init__ of <exceptions.TypeError instance at 0x2a95e46128>> __module__ = 'exceptions' __str__ = <bound method TypeError.__str__ of <exceptions.TypeError instance at 0x2a95e46128>> args = ('first argument must be string or compiled pattern',)
/usr/lib64/python2.3/sre.py in subn(pattern=<_sre.SRE_Pattern object>, repl=<bound method Parser.replace of <MoinMoin.parser.wiki.Parser instance at 0x2a95e33e60>>, string='Additionally, there are the [[PageList]], [[Ful... generate indices for cohesive parts of a wiki. ', count=0)
149 string by the replacement repl. number is the number of 150 substitutions that were made."""
global_compile = <function _compile>, pattern = <_sre.SRE_Pattern object>, globalsubn = <function subn>, repl = <bound method Parser.replace of <MoinMoin.parser.wiki.Parser instance at 0x2a95e33e60>>, string = 'Additionally, there are the [[PageList]], [[Ful... generate indices for cohesive parts of a wiki. ', count = 0 152 153 def split(pattern, string, maxsplit=0):
863 sys.stdout.write(self.highlight_scan(scan_re, line + " ")) 864 else:
865 line, count = re.subn(scan_re, self.replace, line + " ")
line = 'Additionally, there are the [[PageList]], [[Ful...y generate indices for cohesive parts of a wiki.', count = 2, globalre = <module 're' from '/usr/lib64/python2.3/re.pyc'>, globalsubn = undefined, scan_re = <_sre.SRE_Pattern object>, self = <MoinMoin.parser.wiki.Parser instance>, globalreplace = undefined 866 ##if not count: self._check_p() 867 self._check_p()
Parser = <class MoinMoin.parser.wiki.Parser>, body = 'SiteNavigation is the central place to explore ...generate indices for cohesive parts of a wiki.\n', request = <MoinMoin.request.Request instance>, globalformat = undefined, self = <MoinMoin.Page.Page instance>, globalformatter = undefined, form = FieldStorage(None, None, []) 381 382 # check for pending footnotes