]> Devi Nivas Git - chevron.git/commit
Fixed python 2 StringIO bug
authornoah morrison <noah@morrison.ph>
Thu, 6 Nov 2014 20:34:32 +0000 (15:34 -0500)
committernoah morrison <noah@morrison.ph>
Thu, 6 Nov 2014 20:34:32 +0000 (15:34 -0500)
commit775d6fe1f731baae01ed68015adba0756372a752
treecf49cc2e958cd69292b50759ad68ed8a7972e752
parent0284655ab92d16be9af0df3cf4c8875b7ccf0cb6
Fixed python 2 StringIO bug

In python 2 strings were not being converted to StringIOs.

The new method assumes that template is a string and tries to convert
it to a StringIO. If that fails then it assumes a file-like object.
entei.py