Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions coq_jupyter/coqtop.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import re
import xml.etree.ElementTree as ET

from future.utils import raise_with_traceback
from collections import deque
from subprocess import check_output

Expand Down Expand Up @@ -70,7 +69,7 @@ def __init__(self, kernel, coqtop_executable, coqtop_args):
self.tip = reply.find("./state_id").get("val")

except Exception as e:
raise_with_traceback(CoqtopError("Cause: {}".format(repr(e))))
raise CoqtopError("Cause: {}".format(repr(e))).with_traceback()

def eval(self, code):
try:
Expand Down Expand Up @@ -143,7 +142,7 @@ def eval(self, code):
return code_evaluated, outputs

except Exception as e:
raise_with_traceback(CoqtopError("Cause: {}".format(repr(e))))
raise CoqtopError("Cause: {}".format(repr(e))).with_traceback()

def roll_back_to(self, state_id):
self._execute_command(self._build_edit_at_command(state_id))
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
'jupyter_client',
'IPython',
'ipykernel',
'future',
'pexpect>=4.0'
],
classifiers=[
Expand Down