fixing other broken things
This commit is contained in:
parent
d05535a378
commit
90446be352
12
bin/hython
12
bin/hython
@ -13,12 +13,12 @@ except ImportError:
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
sys.argv = sys.argv[1:]
|
||||
try:
|
||||
mod = _hy_import_file(sys.argv[0], '__main__')
|
||||
except Exception as e:
|
||||
exc_type, exc_value, exc_traceback = sys.exc_info()
|
||||
ntb = exc_traceback.tb_next.tb_next.tb_next # YUCK.
|
||||
raise type(e), None, ntb
|
||||
# try:
|
||||
mod = _hy_import_file(sys.argv[0], '__main__')
|
||||
# except Exception as e:
|
||||
# exc_type, exc_value, exc_traceback = sys.exc_info()
|
||||
# ntb = exc_traceback.tb_next.tb_next.tb_next # YUCK.
|
||||
# raise type(e), None, ntb
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
|
@ -170,9 +170,10 @@ class AST27Converter(object):
|
||||
c = i['args']
|
||||
val = c.pop(0)
|
||||
tar = c.pop(0)
|
||||
|
||||
return _meta_ast_subscript(
|
||||
self.render(val),
|
||||
self.render(tar),
|
||||
ast.Index(value=self.render(tar), ctx=ast.Load()),
|
||||
ast.Load())
|
||||
|
||||
def _ast_dot(self, node):
|
||||
|
Loading…
x
Reference in New Issue
Block a user