Пример #1
0
class GNDaemon(threading.Thread):

	def __init__(self):
		threading.Thread.__init__(self)
		self.repo = GNRepo()

	def run(self):
		while True:
			print "check..."
			self.repo.commit("auto commit")
			time.sleep(3)
Пример #2
0
	def __init__(self):
		threading.Thread.__init__(self)
		self.repo = GNRepo()