Re: Python3 / PTL Files

Patrik Simons <[email protected]> Mon, 10 Nov 2014 18:37:41 +0200
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
On Mon, 10 Nov 2014 12:43:15 +0000 Robert Ladyman <[email protected]> wrot=
e:

> =

> > >
> > > 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 file=
s!.
> >
> > 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 intege=
r,
> > 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).
> =


Ok, I evidently didn't test plain.

-- =

Patrik


> -- =

> =

> 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
> _______________________________________________
> Quixote-users mailing list
> [email protected]
> http://lists.quixote.ca/cgi-bin/mailman/listinfo/quixote-users
> =