From f5547f085d39cc62befe155d6e49d1b532d6d733 Mon Sep 17 00:00:00 2001
From: Bruce Flynn <brucef@ssec.wisc.edu>
Date: Thu, 15 Jun 2017 22:40:25 -0500
Subject: [PATCH] few small fixes

---
 .gitignore           | 1 +
 edosl0util/split.py  | 2 +-
 edosl0util/stream.py | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index de10f00..918b457 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+.idea
 .eggs
 .cache
 build
diff --git a/edosl0util/split.py b/edosl0util/split.py
index aff0442..f047c22 100644
--- a/edosl0util/split.py
+++ b/edosl0util/split.py
@@ -36,7 +36,7 @@ def split_stream(stream, minutes):
             cur_bucket = pkt_bucket
 
         # this is an append operation
-        buf += pkt.bytes()
+        buf.extend(pkt.bytes())
         pkt_count += 1
 
     yield cur_bucket, pkt_count, buf
diff --git a/edosl0util/stream.py b/edosl0util/stream.py
index f92924c..0342487 100644
--- a/edosl0util/stream.py
+++ b/edosl0util/stream.py
@@ -99,7 +99,7 @@ class BasicStream(object):
             data = self._read(data_size)
         else:
             data = None
-            self.fobj.seek(data_size, os.SEEK_CUR)
+            self.file.seek(data_size, os.SEEK_CUR)
         return self.Tracker(h1, h2, total_size, offset, data)
 
 
-- 
GitLab