Sorry the code is: et=os.system("hg push hgtarget") if ret != 0: print "ERROR bla bla" anton wrote: > et=os.system("hg push hgtarget") > if ret != =: > print "ERROR bla bla" >