def g_adv(x):
     retval = 0
     try:
         retval = yield aspects.proceed(x + 1)
     except Exception, e:
         if str(e) == "test exception2":
             yield aspects.return_stop(retval + 10)
 def g_adv(x):
     retval=0
     try:
         retval=yield aspects.proceed(x+1)
     except Exception, e:
         if str(e)=="test exception2":
             yield aspects.return_stop(retval+10)
def show_times(*args):
	import aspects
	begin = datetime.utcnow().replace(tzinfo=pytz.UTC)
	result = yield aspects.proceed(*args)
	end = datetime.utcnow().replace(tzinfo=pytz.UTC)
	say("\t[time consumed: %.2f seconds]\n" % (end - begin).total_seconds())
	yield aspects.return_stop(result)
 def g_adv1(*args):
     yield aspects.proceed(*args + (1, ))
 def g_adv1(*args):
     yield aspects.proceed(*args+(1,))
 def g_adv(x):
     yield aspects.proceed(1)
     yield aspects.proceed(1)
     yield aspects.proceed(1)
 def g_adv(x):
     retval=yield aspects.proceed(x+1)
     yield aspects.return_stop(retval+10)
 def w3(x): yield aspects.proceed("w3" + x)
 def w4(x): yield aspects.proceed("w4" + x)
 def w1(x): yield aspects.proceed("w1" + x)
 def w2(x): yield aspects.proceed("w2" + x)
 def w4(x):
     yield aspects.proceed("w4" + x)
 def adv(x):
     args, kwargs = yield aspects.return_cont(22)
     x=args[0]
     yield aspects.proceed(x)
 def g_adv(x):
     yield aspects.proceed(x + 1)
 def w3(x):
     yield aspects.proceed("w3" + x)
 def adv(x):
     args, kwargs = yield aspects.return_cont(22)
     x = args[0]
     yield aspects.proceed(x)
 def g_adv(x):
     r = yield aspects.proceed(x)
     yield aspects.return_stop(r + 1)
 def g_adv2(*args):
     rv = yield aspects.proceed(*args + (2, ))
     yield aspects.return_stop("-".join(str(s) for s in rv))
 def g_adv2(*args):
     rv = yield aspects.proceed(*args+(2,))
     yield aspects.return_stop("-".join(str(s) for s in rv))
 def w1(x):
     yield aspects.proceed("w1" + x)
 def g_adv(x):
     r = yield aspects.proceed(x)
     yield aspects.return_stop(r+1)
 def w2(x):
     yield aspects.proceed("w2" + x)
 def g_adv(x):
     yield aspects.proceed(x+1)
 def g_adv(x):
     yield aspects.proceed(1)
     yield aspects.proceed(1)
     yield aspects.proceed(1)
    def w4(x): yield aspects.proceed("w4" + x)

    for w in (w1, w2, w4, w3, w4): aspects.with_wrap(w, wrapme)
 def g_adv(x):
     if 1 == 0: yield aspects.proceed(15)
 def w2(x): yield aspects.proceed("w2" + x)
 def w3(): 
def show_times(*args):
	begin = datetime.now()
	result = yield aspects.proceed(*args)
	end = datetime.now()
	say("\t[time consumed: %.2f seconds]\n" % (end - begin).total_seconds())
	yield aspects.return_stop(result)
 def g_adv(x):
     if 1==0: yield aspects.proceed(15)
 def g_adv2(self,x=5):
     yield aspects.proceed(self,x=x)
 def g_adv(x):
     retval = yield aspects.proceed(x + 1)
     yield aspects.return_stop(retval + 10)
 def g_adv2(self, x=5):
     yield aspects.proceed(self, x=x)