Skip to content

Commit 9d27c9a

Browse files
committed
PythonSSTNodeFactory: make receiver constant for string equals calls
1 parent 659a09c commit 9d27c9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/PythonSSTNodeFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public SSTNode createImport(String name, String asName, int startOffset, int end
167167
public SSTNode createImportFrom(String from, String[][] asNames, int startOffset, int endOffset) {
168168
if (asNames != null) {
169169
for (String[] asName : asNames) {
170-
if (from.equals(__FUTURE__) && asName[0].equals("annotations")) {
170+
if (__FUTURE__.equals(from) && asName[0].equals("annotations")) {
171171
futureAnnotations = true;
172172
}
173173
scopeEnvironment.createLocal(asName[1] == null ? asName[0] : asName[1]);

0 commit comments

Comments
 (0)