Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Jinja2.2.1 for Python 3
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Timbo  
View profile  
 More options Sep 21 2009, 4:30 pm
From: Timbo <tfarr...@swgen.com>
Date: Mon, 21 Sep 2009 13:30:37 -0700 (PDT)
Local: Mon, Sep 21 2009 4:30 pm
Subject: Jinja2.2.1 for Python 3
I've uploaded another port of Jinja2 (this time of version 2.2.1) to
Python3.x to the Google Groups files section.

The steps to port are rather simple:
1) Run Jinja2 trunk through 2to3.py tool
2) Replace all calls to file() with open()
3) Set the default value for utils.open_if_exists to (filename,
mode='rb')
4) Change the 'str' in line 444 in environment.py to 'bytes'

I've included the tests (which pass).

Thanks for the awesome template engine!

-tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »