Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
to your account
The function mappyfile.findall() takes the specified value and adds single and double quotes as possible values to search for:
Lines 239 to 240
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:
return (item for item in lst if item[key.lower()] == value)
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:
@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.
Sorry, something went wrong.
Fix findall (see #61)
Fixed in 0.7.2 release
No branches or pull requests