fixing other broken things

This commit is contained in:
Paul Tagliamonte 2012-12-31 20:51:18 -05:00
parent d05535a378
commit 90446be352
2 changed files with 8 additions and 7 deletions

View File

@ -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)

View File

@ -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):