Skip to content
Closed
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
4 changes: 2 additions & 2 deletions drudge/drs.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ class _NumFixer(ast.NodeTransformer):
Integer literals will be changed into creation of symbolic integers.
"""

def visit_Num(self, node: ast.Constant):
def visit_Constant(self, node: ast.Constant):
"""Update the number nodes."""
val = node.value
if isinstance(val, int):
Expand All @@ -265,7 +265,7 @@ def visit_Num(self, node: ast.Constant):
ast.copy_location(fixed, node)
return fixed
else:
return val
return node


_DEF_METH_NAME = 'def_as'
Expand Down
2 changes: 0 additions & 2 deletions drudge/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ def write(self):
_PDFLATEX, filename, stat.stdout, stat.stderr
)
warnings.warn(err_msg)
else:
warnings.warn('{} cannot be found.'.format(_PDFLATEX))


_PDFLATEX = 'pdflatex'
Expand Down
Loading