Mercurial > pylearn
changeset 1433:14ba52c38f07
removed import to file that don't exist in this repo.
author | Frederic Bastien <nouiz@nouiz.org> |
---|---|
date | Tue, 22 Feb 2011 10:04:32 -0500 |
parents | 8661f8ad407a |
children | f88508a42a38 |
files | bin/pkldu.py |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 = {}