Skip to content

Commit

Permalink
update r765
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Dec 10, 2014
1 parent 4e1c413 commit 3802007
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions tools/paiza.io/iupaiza.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def make_code(path, encoding, expand):
# run paiza
def run_paiza(code, options):
paiza = PaizaIO()
paiza.longpoll(True)
paiza.code(code)
return paiza.run()

Expand Down
9 changes: 7 additions & 2 deletions tools/paiza.io/pypaiza.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ def wait_complete(self):
r = self.get_status()

def run(self):
self.create()
self.wait_complete();
r = self.create()
while not self.is_completed(r):
r = self.get_status()
return self.get_details()

def language(language, str):
Expand All @@ -73,6 +74,10 @@ def input(self, str):
self.parameter.update({'input':str})
def stdin(self, str):
self.parameter.update({'input':str})
def longpoll(self, b):
self.parameter.update({'longpoll':b})
def longpoll_timeout(self, t):
self.parameter.update({'longpoll_timeout':t})

def dump(self):
print self.parameter
Expand Down

0 comments on commit 3802007

Please sign in to comment.