# HG changeset patch # User Frederic Bastien # Date 1298387072 18000 # Node ID 14ba52c38f07a9a95c7b7aa0cdd653f18ff1dd46 # Parent 8661f8ad407a7508ac25bc6a658b4678a69c16c8 removed import to file that don't exist in this repo. diff -r 8661f8ad407a -r 14ba52c38f07 bin/pkldu.py --- a/bin/pkldu.py Mon Feb 14 19:27:37 2011 -0500 +++ b/bin/pkldu.py Tue Feb 22 10:04:32 2011 -0500 @@ -1,6 +1,5 @@ #!/bin/env python import sys -from util import serial import cPickle import time @@ -13,9 +12,15 @@ will load an object obj from foo.pkl and analyze obj.my_field["my_key"][3] """ +def load(filepath): + f = open(filepath,'rb') + obj = cPickle.load(f) + f.close() + return obj + filepath = sys.argv[1] -orig_obj = serial.load(filepath) +orig_obj = load(filepath) cycle_check = {}