[lyntin-devl] [DIFF] Fix 'splitchar' in config file
Brought to you by:
glasssnake,
willhelm
From: Rob <gen...@gm...> - 2008-01-22 21:09:27
|
Hi, This is applies to Lyntin 4.2. If you have a line like so in your config file for the new 'splitchar' option, you get a traceback when starting Lyntin: splitchar: ^ Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/lyntin/engine.py", line 1077, in main exported.lyntin_command("%sread %s" % (commandchar, mem), internal=1) File "/usr/lib/python2.5/site-packages/lyntin/exported.py", line 110, in lyntin_command myengine.handleUserData(text, internal) File "/usr/lib/python2.5/site-packages/lyntin/engine.py", line 459, in handleUserData input) File "/usr/lib/python2.5/site-packages/lyntin/utils.py", line 402, in split_commands __change_command_split(splitchar) File "/usr/lib/python2.5/site-packages/lyntin/utils.py", line 377, in __change_command_split SPLIT_REGEXP = re.compile(r'(?<!\\)' + re.escape(newsplit)) File "/usr/lib/python2.5/re.py", line 207, in escape return pattern[:0].join(s) AttributeError: 'list' object has no attribute 'join' I'm not sure if I've got the syntax right or not. I tried quoting it, but that didn't help. If it's a bug, here's a fix. Attached is a patch to utils.py. Rob |