comparison sirf.py @ 5:f3547b32c7c5 default tip

Don't set timeout in parser class otherwise we can't use it for FIFO files.
author Daniel O'Connor <darius@dons.net.au>
date Fri, 02 Aug 2019 12:14:26 +0930
parents 2fde8c382dae
children
comparison
equal deleted inserted replaced
4:2fde8c382dae 5:f3547b32c7c5
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2009 3 # Copyright (c) 2019
4 # Daniel O'Connor <darius@dons.net.au>. All rights reserved. 4 # Daniel O'Connor <darius@dons.net.au>. All rights reserved.
5 # 5 #
6 # Redistribution and use in source and binary forms, with or without 6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions 7 # modification, are permitted provided that the following conditions
8 # are met: 8 # are met:
228 self.state = 'init1' 228 self.state = 'init1'
229 229
230 return pktcount 230 return pktcount
231 231
232 def dumpmsgs(self, s): 232 def dumpmsgs(self, s):
233 s.setTimeout(0.1)
234 while True: 233 while True:
235 self.processstr(s.read(100)) 234 self.processstr(s.read(100))
236 235
237 @classmethod 236 @classmethod
238 def Encap(self, data): 237 def Encap(self, data):