Skip to content

Commit

Permalink
Merge 64bdd37 into 7d40a3b
Browse files Browse the repository at this point in the history
  • Loading branch information
rootkiter committed Aug 1, 2017
2 parents 7d40a3b + 64bdd37 commit 82f9bd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dpkt/pcap.py
Expand Up @@ -224,6 +224,10 @@ def writepkt(self, pkt, ts=None):
self.__f.write(bytes(ph))
self.__f.write(s)

def flush(self):
if self.__f != None:
self.__f.flush()

def close(self):
self.__f.close()

Expand Down

0 comments on commit 82f9bd1

Please sign in to comment.