friekman / zen-coding

Automatically exported from code.google.com/p/zen-coding
0 stars 0 forks source link

zen_core line 176 in Sergey's branch has too many parameters for lambda #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm getting an error "lambda expects 2 arguments, received 1" when trying to 
use abbreviations that 
have variables in them with Sergey's new private branch experiments.  Replacing 
the line with this 
seems to have fixed the problem:

    return re.sub(r'\$\{([\w\-]+)\}', lambda s: s.group(1) in zen_settings['variables'] and 
zen_settings['variables'][s.group(1)] or s, text)

Original issue reported on code.google.com by georgeth...@gmail.com on 3 Jul 2009 at 4:57

GoogleCodeExporter commented 8 years ago
Fixed in my private branch

Original comment by serge....@gmail.com on 2 Nov 2009 at 12:06