Style fixes
This commit is contained in:
parent
9b58f893cb
commit
e992c8dd38
@ -38,6 +38,7 @@ _compile_table = {}
|
|||||||
def builds(_type):
|
def builds(_type):
|
||||||
def _dec(fn):
|
def _dec(fn):
|
||||||
_compile_table[_type] = fn
|
_compile_table[_type] = fn
|
||||||
|
|
||||||
def shim(*args, **kwargs):
|
def shim(*args, **kwargs):
|
||||||
return fn(*args, **kwargs)
|
return fn(*args, **kwargs)
|
||||||
return shim
|
return shim
|
||||||
@ -64,7 +65,6 @@ class HyASTCompiler(HyCompiler):
|
|||||||
starargs=None,
|
starargs=None,
|
||||||
kwargs=None)
|
kwargs=None)
|
||||||
|
|
||||||
|
|
||||||
@builds(HySymbol)
|
@builds(HySymbol)
|
||||||
def compile_symbol(self, symbol):
|
def compile_symbol(self, symbol):
|
||||||
return ast.Name(id=str(symbol), ctx=ast.Load())
|
return ast.Name(id=str(symbol), ctx=ast.Load())
|
||||||
|
Loading…
Reference in New Issue
Block a user