1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/usr/bin/python from report import * cd = crash_data() cd.add("foo", "bar") dd = cd.create_dump_dir() if dd: print "dd is nonzero" else: print "dd is zero" print "closing" dd.close() if dd: print "dd is nonzero" else: print "dd is zero"