Merge branch 'python-3.0-to-3.2' into python-2.4

This commit is contained in:
rocky
2023-04-17 23:18:06 -04:00
8 changed files with 36 additions and 24 deletions

View File

@@ -786,7 +786,7 @@ class NonterminalActions:
def n_import_from(self, node):
relative_path_index = 0
if self.version >= (2, 5):
if node[relative_path_index].attr > 0:
if node[relative_path_index].pattr > 0:
node[2].pattr = ("." * node[relative_path_index].attr) + node[2].pattr
if self.version > (2, 7):
if isinstance(node[1].pattr, tuple):