Remove dead code from HyASTCompiler.compile
This commit is contained in:
parent
00150c088c
commit
fca2eb93b0
@ -348,21 +348,18 @@ class HyASTCompiler(object):
|
|||||||
return Result()
|
return Result()
|
||||||
try:
|
try:
|
||||||
ret = self.compile_atom(tree)
|
ret = self.compile_atom(tree)
|
||||||
if ret:
|
self.update_imports(ret)
|
||||||
self.update_imports(ret)
|
return ret
|
||||||
return ret
|
|
||||||
except HyCompileError:
|
except HyCompileError:
|
||||||
# compile calls compile, so we're going to have multiple raise
|
# compile calls compile, so we're going to have multiple raise
|
||||||
# nested; so let's re-raise this exception, let's not wrap it in
|
# nested; so let's re-raise this exception, let's not wrap it in
|
||||||
# another HyCompileError!
|
# another HyCompileError!
|
||||||
raise
|
raise
|
||||||
except HyTypeError as e:
|
except HyTypeError:
|
||||||
raise
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise_empty(HyCompileError, e, sys.exc_info()[2])
|
raise_empty(HyCompileError, e, sys.exc_info()[2])
|
||||||
|
|
||||||
raise HyCompileError(Exception("Unknown type: `%s'" % _type))
|
|
||||||
|
|
||||||
def _compile_collect(self, exprs, with_kwargs=False, dict_display=False,
|
def _compile_collect(self, exprs, with_kwargs=False, dict_display=False,
|
||||||
oldpy_unpack=False):
|
oldpy_unpack=False):
|
||||||
"""Collect the expression contexts from a list of compiled expression.
|
"""Collect the expression contexts from a list of compiled expression.
|
||||||
|
Loading…
Reference in New Issue
Block a user