autopep8 cleanup of Examples/test-suite/python
automated cleanup of python pep8 whitespace compliance
This commit is contained in:
parent
9086eb351c
commit
b77f3afafb
202 changed files with 3477 additions and 3382 deletions
|
|
@ -1,22 +1,22 @@
|
|||
from python_append import *
|
||||
|
||||
|
||||
def is_new_style_class(cls):
|
||||
return hasattr(cls, "__class__")
|
||||
return hasattr(cls, "__class__")
|
||||
|
||||
# test not relevant for -builtin
|
||||
if is_python_builtin():
|
||||
exit(0)
|
||||
exit(0)
|
||||
|
||||
t=Test()
|
||||
t = Test()
|
||||
t.func()
|
||||
if is_new_style_class(Test):
|
||||
t.static_func()
|
||||
t.static_func()
|
||||
else:
|
||||
Test_static_func()
|
||||
Test_static_func()
|
||||
|
||||
if grabpath() != os.path.dirname(mypath):
|
||||
raise RuntimeError("grabpath failed")
|
||||
raise RuntimeError("grabpath failed")
|
||||
|
||||
if grabstaticpath() != os.path.basename(mypath):
|
||||
raise RuntimeError("grabstaticpath failed")
|
||||
|
||||
raise RuntimeError("grabstaticpath failed")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue