3 messages in com.perforce.perforce-user[p4] Python marshalling broken with P...
FromSent OnAttachments
Smith, Jeff22 Feb 2005 10:44 
Smith, Jeff22 Feb 2005 13:54 
Nick Barnes23 Feb 2005 03:29 
Subject:[p4] Python marshalling broken with Python 2.4
From:Smith, Jeff (jsm@medplus.com)
Date:02/22/2005 10:44:29 AM
List:com.perforce.perforce-user

I've tried the following simple filter between 2.2.3 and 2.4 against both 2002.2 and 2004.2

p4 -G label -o before | ./myfilter.py | p4 -G label -i

where myfilter.py: #!/bin/env python import sys import marshal

mlines = marshal.load(sys.stdin) mlines['Label'] = 'after' marshal.dump(mlines, sys.stdout)

This works with Python 2.2.3 (and I believe 2.3) but not 2.4. Note that if I comment out

mlines['Label'] = 'after'

it works in all cases.

Any ideas? Jeff