Opened 15 years ago

Closed 15 years ago

#4846 closed defect (fixed)

'unicode' object has no attribute 'partition' error with Python 2.4.

Reported by: anonymous Owned by: Ashish Kulkarni
Priority: normal Component: FlatTableMacro
Severity: trivial Keywords:
Cc: Trac Release: 0.11


---  Sat Mar 28 17:19:59 2009
+++       Sat Mar 28 19:51:28 2009
@@ -48,7 +48,7 @@
     def _parse_config(self, cols):
         config = []
         for col in cols:
-            name, sep, val = col.partition(':')
+            name, val = col.split(':',1);
             config.append( (name.strip(), [item.strip() for item in val.split()]) )
         return config

I'm not goot at python(and english too), but this changes works for me with python 2.4.

thanks for your work.

Attachments (0)

Change History (1)

comment:1 Changed 15 years ago by Ashish Kulkarni

Resolution: fixed
Status: newclosed

(In [5421]) fix #4846 (compatibility with python 2.4)

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ashish Kulkarni.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.