Ticket #4846 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Reported by: anonymous Assigned to: 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

Change History

03/28/09 15:15:51 changed by ashkulz

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #4846 ('unicode' object has no attribute 'partition' error with Python 2.4.)




Change Properties
Action