[pather] code style changes
This commit is contained in:
parent
83850c1cbc
commit
d71ede927c
@ -458,8 +458,8 @@ class Pather(Builder):
|
|||||||
portspec,
|
portspec,
|
||||||
ccw,
|
ccw,
|
||||||
length,
|
length,
|
||||||
tool_port_names=tool_port_names,
|
tool_port_names = tool_port_names,
|
||||||
plug_into=plug_into,
|
plug_into = plug_into,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -678,15 +678,12 @@ class Pather(Builder):
|
|||||||
|
|
||||||
bound_types = set()
|
bound_types = set()
|
||||||
if 'bound_type' in kwargs:
|
if 'bound_type' in kwargs:
|
||||||
bound_types.add(kwargs['bound_type'])
|
bound_types.add(kwargs.pop('bound_type'))
|
||||||
bound = kwargs['bound']
|
bound = kwargs.pop('bound')
|
||||||
del kwargs['bound_type']
|
|
||||||
del kwargs['bound']
|
|
||||||
for bt in ('emin', 'emax', 'pmin', 'pmax', 'xmin', 'xmax', 'ymin', 'ymax', 'min_past_furthest'):
|
for bt in ('emin', 'emax', 'pmin', 'pmax', 'xmin', 'xmax', 'ymin', 'ymax', 'min_past_furthest'):
|
||||||
if bt in kwargs:
|
if bt in kwargs:
|
||||||
bound_types.add(bt)
|
bound_types.add(bt)
|
||||||
bound = kwargs[bt]
|
bound = kwargs.pop('bt')
|
||||||
del kwargs[bt]
|
|
||||||
|
|
||||||
if not bound_types:
|
if not bound_types:
|
||||||
raise BuildError('No bound type specified for mpath')
|
raise BuildError('No bound type specified for mpath')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user