Example #1
0
	def _close(self, e):
		print '_close', e
		self._closed = True
		self.read_watcher.stop()
		print 'unmounting...'
		self._unmount()
		print 'unlooping...'
		unloop()
Example #2
0
 def _close(self, e):
     print '_close', e
     self._closed = True
     self.read_watcher.stop()
     print 'unmounting...'
     self._unmount()
     print 'unlooping...'
     unloop()
Example #3
0
def printresult(res, a, b):
    global c
    if res != a + b:
        print 'error, res!= a+b', res, a + b
        n.shutdown()
        unloop()

    c += 1
    ctime = time.time()

    if c % 1000 == 0:
        print int(ctime * 1000), c

    if ctime - starttime < 60.0:
        startcall()
    else:
        print int(ctime * 1000), c
        n.shutdown()
        unloop()
Example #4
0
def printresult(res, a,b):
	global c
	if res != a+b:
		print 'error, res!= a+b', res, a+b
		n.shutdown()
		unloop()

	c += 1
	ctime = time.time()

	if c % 1000 == 0:
		print int(ctime*1000), c
	
	if ctime - starttime < 60.0:
		startcall()
	else:
		print int(ctime*1000), c
		n.shutdown()
		unloop()
Example #5
0
def printexception(r):
	print 'exc:', r
	n.shutdown()
	unloop()
Example #6
0
def printresult(result):
	print 'printresult:', result
	n.shutdown()
	unloop()
Example #7
0
def printresult(result):
    print "printresult:", result
    n.shutdown()
    unloop()
Example #8
0
def printexception(r):
    print "exc:", r
    n.shutdown()
    unloop()
Example #9
0
def printexception(r, msg):
	print 'exc', msg, ':', r
	n.shutdown()
	unloop()
Example #10
0
 def prexcept(e):
     print 'Error:', e
     n.shutdown()
     unloop()
Example #11
0
		def master_exc(r):
			print 'Exception on Instamaster promise:', e
			unloop()
Example #12
0
			def prexcept(e):
				print 'Error:', e
				n.shutdown()
				unloop()
Example #13
0
			def donecb(r):
				print 'done:', r
				n.shutdown()
				unloop()
Example #14
0
def printexception(r, msg):
    print 'exc', msg, ':', r
    n.shutdown()
    unloop()
Example #15
0
File: cli.py Project: rep/pwrcall
def close(r=None):
	n.shutdown()
	unloop()
Example #16
0
File: cli.py Project: rep/pwrcall
def printexception(r):
	print 'exc:', r
	n.shutdown()
	unloop()
Example #17
0
File: cli.py Project: rep/pwrcall
def close(r=None):
    n.shutdown()
    unloop()
Example #18
0
 def donecb(r):
     print 'done:', r
     n.shutdown()
     unloop()
Example #19
0
 def _lclose(self, e):
     logging.critical('Listener closed ({0}). Exiting.'.format(e))
     unloop()
Example #20
0
 def master_exc(r):
     print 'Exception on Instamaster promise:', e
     unloop()
Example #21
0
	def _lclose(self, e):
		logging.critical('Listener closed ({0}). Exiting.'.format(e))
		unloop()