mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Merge branch 'master' of git.labs.intellij.net:idea/ultimate
python/codeInsight/intentions/PyJoinIfIntention.java: notice outer 'else'.
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
def newlist(x, y):
|
||||
return (x + y) / y
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
def foo():
|
||||
if a + 2 > 3:
|
||||
if b < 4:
|
||||
#comment
|
||||
a = a and b
|
||||
b = 4
|
||||
elif a > 20:
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
def foo():
|
||||
if <caret>a + 2 > 3:
|
||||
if b < 4:
|
||||
a = a and b
|
||||
b = 4
|
||||
else: # this prevents ifs from joining
|
||||
print a
|
||||
@@ -1,5 +1,6 @@
|
||||
def foo():
|
||||
i<caret>f a + 2 > 3 and b < 4:
|
||||
#comment
|
||||
a = a and b
|
||||
b = 4
|
||||
elif a > 20:
|
||||
|
||||
Reference in New Issue
Block a user