File cheetah_class_fix.diff of Package cobbler.import4280
--- cobbler/templar.py
+++ cobbler/templar.py 2011/02/16 11:55:30
@@ -33,10 +33,8 @@
import time
import Cheetah
-major, minor, release = Cheetah.Version.split('.')
-fix_cheetah_class = False
-if major >= 2 and minor >=4 and release >= 2:
- fix_cheetah_class = True
+major, minor, release = Cheetah.Version.split('.')[0:3]
+fix_cheetah_class = int(major) >= 2 and int(minor) >=4 and int(release) >= 2
try:
import functools