fparser
fparser copied to clipboard
get_reader() utility fails if string contains non-ascii characters
The get_reader() utility in fparser.api attempts to decide whether the string it has been passed is actually a filename rather than Fortran code. Unfortunately it then falls over (in Python2) if the supplied string has non-ASCII characters.
The workaround is to create a FortranStringReader directly rather than use the get_reader utility.