forked from OpenSDV/Linux_Kernel_map4vehicle
autopep8
This commit is contained in:
parent
ecd483e222
commit
acc8223d41
|
@ -68,6 +68,7 @@ def print_limited(a, out=None):
|
|||
# raise(Exception('Reached lines limit'))
|
||||
out.write(str(a) + '\n')
|
||||
|
||||
|
||||
def print_limited2(a, out=None):
|
||||
# exits when reaches limit of printed lines
|
||||
out = out if out else sys.stdout
|
||||
|
@ -78,6 +79,7 @@ def print_limited2(a, out=None):
|
|||
level_limit = 2
|
||||
out.write(str(a) + '\n')
|
||||
|
||||
|
||||
def log(*args, **kwargs):
|
||||
# log with context function
|
||||
if not verbose:
|
||||
|
@ -954,7 +956,7 @@ def to_dg(a):
|
|||
if os.path.isfile(a):
|
||||
log(a)
|
||||
return read_dot(a)
|
||||
raise(Exception(a))
|
||||
raise (Exception(a))
|
||||
|
||||
|
||||
def remove_loops(dg):
|
||||
|
|
Loading…
Reference in New Issue