Modify

Opened 5 years ago

Closed 5 years ago

#4846 closed defect (fixed)

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

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

Description

--- FlatTableProcessor.py.orig  Sat Mar 28 17:19:59 2009
+++ FlatTableProcessor.py       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 5 years ago by ashkulz

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from ashkulz. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.