Bug 311010
lp bug: https://launchpad.net/bugs/311010 fixed bzr revid: jvo@tinyerp.com-20081224090339-lrfj3eksa3jdymhy
This commit is contained in:
parent
ba8937a200
commit
fb231cda53
|
@ -292,8 +292,10 @@ class rml_parse(object):
|
|||
pp=self._node
|
||||
self._node = pp
|
||||
lst=''
|
||||
if type(text)==type(''):
|
||||
if isinstance(text,(str,unicode)):
|
||||
lst = text.split('\n')
|
||||
# lst = str(text).split('\n') # This is also acceptable, isn't it?
|
||||
|
||||
if lst and (not len(lst)):
|
||||
return None
|
||||
nodes = []
|
||||
|
|
Loading…
Reference in New Issue