Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Commit

Permalink
Provide backwards compatibility with Python 2.3 where 'set()' is not …
Browse files Browse the repository at this point in the history
…a builtin datatype.

This should correct the majority of the errors in this test run:
	http://hudson.communitycheetah.org/job/Cheetah%20(next)/label=Cheetah,python=python23/lastBuild/testReport/

Signed-off-by: R. Tyler Ballance <tyler@slide.com>
  • Loading branch information
R. Tyler Ballance committed May 15, 2009
1 parent 1b33fd6 commit b44366f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Template.py
Expand Up @@ -41,6 +41,12 @@ def acquire(self):
def release(self):
pass

try:
x = set()
except NameError:
# Python 2.3 compatibility
from sets import Set as set

from Cheetah.Version import convertVersionStringToTuple, MinCompatibleVersionTuple
from Cheetah.Version import MinCompatibleVersion
# Base classes for Template
Expand Down

0 comments on commit b44366f

Please sign in to comment.