Re: Python3 / PTL Files
Robert Ladyman <[email protected]> Mon, 10 Nov 2014 12:43:15 +0000
| Newsgroups | gmane.comp.web.quixote.user |
|---|---|
| Organization | File-Away Limited |
| Message-ID | <[email protected]> |
> > > > I have the PTL and other tests passing, but am puzzling over the PTL > > import routines: I do not use PTL at all, hence my call for test files!. > > Sorry, I was going to publish the changes, but other work kept me busy. > > The changes in ptl_compile relative to the patch are: > remove vars_imp from visit_Module, ast.Num n argument must be an integer, > and port to python 3. Ah, the bug I found was: =A0 =A0 def visit_Expr(self, node): =A0 =A0 =A0 =A0 if "html" =3D=3D self._get_template_type(): The if statement should perhaps be changed to: =A0=A0=A0=A0=A0=A0=A0=A0if self._get_template_type(): (that is, if the type is html OR plain). -- = Robert Ladyman File-Away Limited, 30 Church Street, Newtyle Perthshire, PH12 8TZ SCOTLAND Registered in Scotland, Company Number SC222086 Tel: +44 (0) 1828 898 158 Mobile: +44 (0) 7732 771 649 http://www.file-away.co.uk