Skip to content

Commit

Permalink
update r766
Browse files Browse the repository at this point in the history
  • Loading branch information
srz-zumix committed Dec 11, 2014
1 parent 3802007 commit 03245dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion tools/paiza.io/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ save: sample.cpp $(TOOLS) Makefile
python iupaiza.py sample.cpp

test: ../../test/iutest_syntax_tests.cpp Makefile
python iupaiza.py $< -c $(WANDBOX_COMPILER) -f"-DIUTEST_USE_MAIN" --expand_include --encoding utf-8-sig
#python iupaiza.py $< -c $(WANDBOX_COMPILER) -f"-DIUTEST_USE_MAIN" --expand_include --encoding utf-8-sig

lentest: Makefile
dd if=/dev/zero of=lentest.cpp bs=100001 count=1
python iupaiza.py lentest.cpp
10 changes: 6 additions & 4 deletions tools/paiza.io/pypaiza.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ def create(self):
r.raise_for_status()
result = r.json()
if 'error' in result:
print result['error']
print result
raise
elif 'id' in result:
if not 'longpoll timeout' in result['error']:
print result['error']
print result
raise

if 'id' in result:
self.session_id = result['id']
else:
print result
Expand Down

0 comments on commit 03245dc

Please sign in to comment.