autopep8 cleanup of Examples/test-suite/python

automated cleanup of python pep8 whitespace compliance
This commit is contained in:
Jon Schlueter 2015-05-06 08:27:35 -04:00 committed by Jon Schlueter
commit b77f3afafb
202 changed files with 3477 additions and 3382 deletions

View file

@ -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()