Fixed missing length parameter 0.7.1 version-0.7.1
authorJames French <[email protected]>
Mon, 2 Aug 2010 16:34:00 +0000 (00:34 +0800)
committerJames French <[email protected]>
Mon, 2 Aug 2010 16:34:00 +0000 (00:34 +0800)
icalparse.py

index 3949c3d..395283f 100755 (executable)
@@ -68,7 +68,7 @@ def lineFolder(oldcal, length=75):
 
                                # Convert up to length octets to unicode, dropping any
                                # half characters
-                               ufold = unicode(line[0:75], 'utf-8', 'ignore')
+                               ufold = unicode(line[0:ll], 'utf-8', 'ignore')
                                fold = ufold.encode('utf-8')
 
                                # Remove what we've converted from the line

UCC git Repository :: git.ucc.asn.au