Skip to content

Commit 3424d96

Browse files
committed
Fix FromImport module name handling
1 parent 3ec245e commit 3424d96

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/bytecode/ImportFromNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private Object tryResolveCircularImport(Object module, TruffleString name) {
117117
throw PConstructAndRaiseNode.getUncached().raiseImportError(null, pkgnameObj, pkgpathObj, ErrorMessages.CANNOT_IMPORT_NAME_CIRCULAR, name, pkgname, pkgpath);
118118
} else {
119119
if (pkgpathObj == null) {
120-
pkgnameObj = PNone.NONE;
120+
pkgpathObj = PNone.NONE;
121121
}
122122
throw PConstructAndRaiseNode.getUncached().raiseImportError(null, pkgnameObj, pkgpathObj, ErrorMessages.CANNOT_IMPORT_NAME, name, pkgname, pkgpath);
123123
}

0 commit comments

Comments
 (0)