Open alanyee opened 4 years ago
import chevron with open('file.mustache', 'r') as f: chevron.render(f, {'mustache': 'World'})
outputs Hello World, but
Hello World
import chevron with open('file.mustache', 'rb') as f: chevron.render(f, {'mustache': 'World'})
becomes TypeError: cannot unpack non-iterable int object
TypeError: cannot unpack non-iterable int object
outputs
Hello World
, butbecomes
TypeError: cannot unpack non-iterable int object