Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Apply patch to fix another UnicodeEncodeError

Reported by Carles Muñoz Gorriz in the Debian bug tracker:
    <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584966>

Change-Id: Ic6db91b5da9966eaf5b26e2d7170e667915d57c2
  • Loading branch information...
commit 073876f66e35501e289cc5dd1d60672e88c893f2 1 parent 1f3e4ed
R. Tyler Croy authored April 22, 2011

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. 8  cheetah/Compiler.py
8  cheetah/Compiler.py
@@ -1476,8 +1476,12 @@ def methodDefs(self):
1476 1476
         return '\n\n'.join(methodDefs)
1477 1477
 
1478 1478
     def attributes(self):
1479  
-        attribs = [self.setting('indentationStep') + str(attrib)
1480  
-                      for attrib in self._generatedAttribs ]
  1479
+        try:
  1480
+            attribs = [self.setting('indentationStep') + str(attrib)
  1481
+                          for attrib in self._generatedAttribs ]
  1482
+        except UnicodeEncodeError:
  1483
+            attribs = [self.setting('indentationStep') + unicode(attrib)
  1484
+                          for attrib in self._generatedAttribs ]
1481 1485
         return '\n\n'.join(attribs)
1482 1486
   
1483 1487
 class AutoClassCompiler(ClassCompiler):

0 notes on commit 073876f

Please sign in to comment.
Something went wrong with that request. Please try again.