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,24 +1,26 @@
|
|||
import director_detect
|
||||
import director_detect
|
||||
|
||||
|
||||
class MyBar(director_detect.Bar):
|
||||
def __init__(self, val = 2):
|
||||
director_detect.Bar.__init__(self)
|
||||
self.val = val
|
||||
|
||||
def get_value(self):
|
||||
self.val = self.val + 1
|
||||
return self.val
|
||||
|
||||
def get_class(self):
|
||||
self.val = self.val + 1
|
||||
return director_detect.A()
|
||||
def __init__(self, val=2):
|
||||
director_detect.Bar.__init__(self)
|
||||
self.val = val
|
||||
|
||||
def just_do_it(self):
|
||||
self.val = self.val + 1
|
||||
def get_value(self):
|
||||
self.val = self.val + 1
|
||||
return self.val
|
||||
|
||||
def clone(self):
|
||||
return MyBar(self.val)
|
||||
pass
|
||||
def get_class(self):
|
||||
self.val = self.val + 1
|
||||
return director_detect.A()
|
||||
|
||||
def just_do_it(self):
|
||||
self.val = self.val + 1
|
||||
|
||||
def clone(self):
|
||||
return MyBar(self.val)
|
||||
pass
|
||||
|
||||
|
||||
b = MyBar()
|
||||
|
|
@ -33,4 +35,4 @@ c = b.clone()
|
|||
vc = c.get_value()
|
||||
|
||||
if (v != 3) or (b.val != 5) or (vc != 6):
|
||||
raise RuntimeError,"Bad virtual detection"
|
||||
raise RuntimeError, "Bad virtual detection"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue