From d02b7a2bc8bc4291308d9118f58f8b38094dc84d Mon Sep 17 00:00:00 2001
From: Bruce Flynn <brucef@ssec.wisc.edu>
Date: Fri, 9 Oct 2015 20:17:01 +0000
Subject: [PATCH] Fix attr name in prune script

---
 scripts/prune_packets.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/prune_packets.py b/scripts/prune_packets.py
index 1c62196..4d110db 100755
--- a/scripts/prune_packets.py
+++ b/scripts/prune_packets.py
@@ -22,8 +22,8 @@ def pack_hdr_bytes(hdr):
 with open(args.outfile, 'wb') as fptr:
     idx = 0
     for pkt in stream.PacketStream(open(args.pdsfile)):
-        h1 = pkt._primary_header
-        h2 = pkt._secondary_header
+        h1 = pkt.primary_header
+        h2 = pkt.secondary_header
         if h2:
             h1.data_length_minus1 = c.sizeof(h2) - 1
             fptr.write(h1)
-- 
GitLab