You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But the result of the parsed mapfile contains the values (e.g. group or layer names) without any quotes and mappyfile.findall() always returns an empty generator object.
In my case, I could fix it by passing the specified value directly:
@kdeininger - thanks for reporting this. The addition of quotes are left over from early versions of mappyfile which didn't strip them automatically from the parse tree.
I'll add the fix and a test for this shortly.
The function
mappyfile.findall()
takes the specified value and adds single and double quotes as possible values to search for:mappyfile/mappyfile/utils.py
Lines 239 to 240 in d253620
But the result of the parsed mapfile contains the values (e.g. group or layer names) without any quotes and
mappyfile.findall()
always returns an empty generator object.In my case, I could fix it by passing the specified value directly:
Is there something wrong with my parsed content or needs this function to be fixed?
mappyfile.find()
works fine.The text was updated successfully, but these errors were encountered: