change option "between top-level classes and functions" to "around ...", ensure that we put two lines between import and class (PY-7743)

This commit is contained in:
Dmitry Jemerov
2012-12-13 20:21:08 +01:00
parent 218239d6f3
commit 279a136c14
59 changed files with 77 additions and 10 deletions
@@ -1,5 +1,6 @@
from b import B
class C(B):
def __init__(self):
super(C, self).__init__()
@@ -1,6 +1,7 @@
import lib1
from lib1 import URLOpener
def f(x):
return x
@@ -1,5 +1,6 @@
from lib1 import urlopen
def g():
return None
@@ -1,7 +1,9 @@
import lib1
import lib2
def f():
pass
f()
@@ -1,4 +1,5 @@
import lib1 as iks
def f(x):
return iks.I(x)
@@ -1,4 +1,5 @@
from b import f as g
def main():
print(g(42))
@@ -1,4 +1,5 @@
__author__ = 'catherine'
def function_1():
pass
@@ -1,4 +1,5 @@
__author__ = 'catherine'
def function_2():
pass
@@ -1,5 +1,6 @@
from lib1 import S, K
def f(x):
from lib1 import I
return S(K(I))(I)(42)
@@ -1,5 +1,6 @@
__author__ = 'user1'
def f(url):
'''Return the representation available at the URL.
@@ -1,4 +1,5 @@
import lib1.mod1
def f(x):
return lib1.mod1.k(x)(42)
@@ -1,4 +1,5 @@
from b import f
def main():
print(f(-1))
@@ -1,5 +1,6 @@
import a
from b import f
def main():
print(f(42))
@@ -1,4 +1,5 @@
from b import f
def g():
return f()
@@ -1,4 +1,5 @@
from p1 import m1
def f():
m1.g()
@@ -1,4 +1,5 @@
from a import f
def use_f():
f()