Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
pannous committed Dec 8, 2016
1 parent 1102cb0 commit 92b82e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ast_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
# but returns precise location information for every token

import ast
import compiler
import json
import os
try:import compiler
except:print("NO compiler pyc emitter module in python3 !")
from ast import *

# todo: consider re-implementing with the visitor pattern, see astor.codegen
Expand Down
2 changes: 0 additions & 2 deletions kast.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,6 @@ def __str__(self):

# _ast.Num.__str__=lambda self:"%d"%(self.n)
# _ast.Eq.__str__=lambda self:"==" #lambda self:self.num
_ast.Num.__repr__ = lambda self: "%d" % (self.n)
_ast.Eq.__repr__ = lambda self: "==" # lambda self:self.num

#
# class Function(FunctionDef):
Expand Down

0 comments on commit 92b82e0

Please sign in to comment.