In 16 register filter def undercat value len None bits value split --b

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
In [16]: @register.filter
....: def undercat(value, len=None):
....: bits = value.split('<!--break-->')
....: if bits.__len__() == 2:
....: return '%s %s' % (bits[0], '')
....: return value
------------------------------------------------------------
File "<ipython console>", line 6
alue
^
SyntaxError: invalid syntax