1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

Normalize new lines for python fixture files

This commit is contained in:
Rick Winfrey 2017-06-07 10:30:37 -07:00
parent 7ad1643d9c
commit 7023a16147
66 changed files with 32 additions and 68 deletions

View File

@ -1,3 +1,2 @@
assert a
assert b, c

View File

@ -1,3 +1,2 @@
assert c, a
assert b

View File

@ -1,4 +1,3 @@
a, b = 2, 1
c = 1
b, = 1, 2

View File

@ -0,0 +1,8 @@
async def a():
b
async def b(h, i,):
i
async def c(d):
d

View File

@ -6,4 +6,3 @@ async def a():
async def d(c):
e

View File

@ -1 +1,2 @@
a.b
a.b

View File

@ -1 +1 @@
a.b.c
a.b.c

View File

@ -1,4 +1,3 @@
a >>= 2
d //= 1
b += 1

View File

@ -8,4 +8,3 @@ class C():
class B(method1):
def method1(self):
return

View File

@ -5,4 +5,3 @@ class D(method1):
class B:
def b(self):
return c

View File

@ -1,3 +1,2 @@
# first comment
# second comment

View File

@ -0,0 +1,10 @@
a < b
c <= d
e != f
g >= h
i > j
k <> l
m in n
o is p
q not in r
s is not t

View File

@ -1,2 +1 @@
"one" "two" "three"

View File

@ -1,2 +1 @@
"two" "one" "four" "three"

View File

@ -1,3 +1,2 @@
foo() if a
b = c if d else e

View File

@ -1,3 +1,2 @@
e = d if f else g
foo() if b

View File

@ -1,3 +1,2 @@
continue
continue

View File

@ -9,4 +9,3 @@ class C:
@a(1, b=True, *b, **c)
def f():
g

View File

@ -6,4 +6,3 @@ class D:
@a(2, c=True, *a, **d)
def f():
g

View File

@ -1,2 +1 @@
del a[1], b[2]

View File

@ -1,2 +1 @@
del b[1], a[2]

View File

@ -1,4 +1,2 @@
{ c : d for b in a }
{ d : g for e in f }

View File

@ -1,3 +1,2 @@
{ f : g for e in d }
{ c : 1 for b in a }

View File

@ -1,4 +1,3 @@
exec '1+1'
exec 'x+=1' in None
exec 'x+=1' in a, b

View File

@ -1,4 +1,3 @@
exec 'x+=1' in d
exec 'x+=1' in b, c
exec '2+1'

View File

@ -2,4 +2,3 @@ a
b + c
1, 2, 3
1, 2, 3,

View File

@ -2,4 +2,3 @@
b
3, 1, 2,
a + c

View File

@ -8,4 +8,3 @@
.3e1_4
1_0.l
.1l

View File

@ -8,4 +8,3 @@
.8e2_7
2_1.l
.2l

View File

@ -7,4 +7,3 @@ else:
for x, in [(1,), (2,), (3,)]:
x

View File

@ -7,4 +7,3 @@ for line, j in lines:
print character
else:
print y

View File

@ -6,4 +6,3 @@ def c(d):
def g(g, h,):
i

View File

@ -6,4 +6,3 @@ def c():
def d(e):
a

View File

@ -1,3 +1,2 @@
(c for b in a)
(d for e in f)

View File

@ -1,3 +1,2 @@
(f for e in d)
(c + 1 for b in a)

View File

@ -1,3 +1,2 @@
global a
global a, b

View File

@ -1,3 +1,2 @@
global b, a
global c

View File

@ -1,4 +1,3 @@
if a:
b
c

View File

@ -1,4 +1,3 @@
if c:
a
b

View File

@ -0,0 +1,3 @@
from a import b
from a import (b, c)
from a import *

View File

@ -1,5 +1,3 @@
from b import a
from b import (c, a)
from b import *

View File

@ -1,3 +1,2 @@
import b, a
import a.c as e

View File

@ -11,4 +11,3 @@
0B1_1
0O1_1
0L

View File

@ -11,4 +11,3 @@
0B1_1_1
0O2_3
1L

View File

@ -1,3 +1,2 @@
[ c for b in a ]
[ d for e in f ]

View File

@ -1,3 +1,2 @@
[ f for e in d ]
[ c + 1 for b in a ]

View File

@ -1,2 +1 @@
nonlocal a

View File

@ -1,2 +1 @@
nonlocal b

View File

@ -1,2 +1 @@
pass

View File

@ -1,3 +1,2 @@
pass
pass

View File

@ -0,0 +1,4 @@
print a, b
print c
print 0 or 1
print 0 or 1, 1 or 0,

View File

@ -1,5 +1,4 @@
print a, b
print c
print 1 or 0
print 0 or 1, 1 or 0,
print c, a
print b
print 0 or 1
print 1 or 0, 0 or 1,

View File

@ -1,4 +1,3 @@
raise
raise RuntimeError('NO')
raise RunTimeError('NO') from e

View File

@ -1,4 +1,3 @@
raise RuntimeError('YES')
raise RunTimeError('YES') from f
raise

View File

@ -1,4 +1,3 @@
return
return a + b, c
return not b

View File

@ -1,4 +1,3 @@
return c + a, b
return
return not a

View File

@ -1,3 +1,2 @@
{ c for b in a }
{ d for e in f }

View File

@ -1,3 +1,2 @@
{ f for e in d }
{ c + 1 for b in a }

View File

@ -7,4 +7,3 @@ ur"hiii"
b'gg'
`2`
"/"

View File

@ -13,4 +13,3 @@ try:
a
finally:
b

View File

@ -13,4 +13,3 @@ except i, j:
k
except:
l

View File

@ -1,3 +1,2 @@
(a, b)
(a, b, c,)

View File

@ -2,4 +2,3 @@ while true:
pass
break
continue

View File

@ -2,4 +2,3 @@ while false:
break
continue
pass

View File

@ -1,3 +1,2 @@
with a as b:
c

View File

@ -1,3 +1,2 @@
with b as c:
a