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,20 +1,22 @@
|
|||
from li_boost_shared_ptr_bits import *
|
||||
|
||||
|
||||
def is_new_style_class(cls):
|
||||
return hasattr(cls, "__class__")
|
||||
return hasattr(cls, "__class__")
|
||||
|
||||
|
||||
def check(nd):
|
||||
nd.i = 200
|
||||
i = nd.i
|
||||
nd.i = 200
|
||||
i = nd.i
|
||||
|
||||
try:
|
||||
nd.notexist = 100
|
||||
passed = 0
|
||||
except:
|
||||
passed = 1
|
||||
try:
|
||||
nd.notexist = 100
|
||||
passed = 0
|
||||
except:
|
||||
passed = 1
|
||||
|
||||
if not passed:
|
||||
raise "Test failed"
|
||||
if not passed:
|
||||
raise "Test failed"
|
||||
|
||||
nd = NonDynamic()
|
||||
check(nd)
|
||||
|
|
@ -30,11 +32,10 @@ v.push_back(IntHolder(33))
|
|||
|
||||
sum = sum(v)
|
||||
if sum != 66:
|
||||
raise "sum is wrong"
|
||||
raise "sum is wrong"
|
||||
|
||||
################################
|
||||
if is_new_style_class(HiddenDestructor):
|
||||
p = HiddenDestructor.create()
|
||||
p = HiddenDestructor.create()
|
||||
else:
|
||||
p = HiddenDestructor_create()
|
||||
|
||||
p = HiddenDestructor_create()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue