Code Duplication    Length = 12-12 lines in 2 locations

rsudp/c_tweet.py 1 location

@@ 219-230 (lines=12) @@
216
		
217
		self.last_message = message
218
219
	def run(self):
220
		"""
221
		Reads data from the queue and tweets a message if it sees an ALARM or IMGPATH message
222
		"""
223
		while True:
224
			d = self.getq()
225
226
			if 'ALARM' in str(d):
227
				self._when_alarm(d)
228
229
			elif 'IMGPATH' in str(d):
230
				self._when_img(d)
231

rsudp/c_telegram.py 1 location

@@ 155-166 (lines=12) @@
152
				printM('Could not find image: %s' % (imgpath), sender=self.sender)
153
154
155
	def run(self):
156
		"""
157
		Reads data from the queue and sends a message if it sees an ALARM or IMGPATH message
158
		"""
159
		while True:
160
			d = self.getq()
161
162
			if 'ALARM' in str(d):
163
				self._when_alarm(d)
164
165
			elif 'IMGPATH' in str(d):
166
				self._when_img(d)
167