[Tool] avoid passing port_names down
This commit is contained in:
parent
707a16fe64
commit
20c845a881
2 changed files with 33 additions and 3 deletions
|
|
@ -240,7 +240,7 @@ class Tool:
|
|||
BuildError if an impossible or unsupported geometry is requested.
|
||||
"""
|
||||
# Fallback implementation using traceL
|
||||
port_names = kwargs.get('port_names', ('A', 'B'))
|
||||
port_names = kwargs.pop('port_names', ('A', 'B'))
|
||||
tree = self.traceL(
|
||||
ccw,
|
||||
length,
|
||||
|
|
@ -288,7 +288,7 @@ class Tool:
|
|||
BuildError if an impossible or unsupported geometry is requested.
|
||||
"""
|
||||
# Fallback implementation using traceS
|
||||
port_names = kwargs.get('port_names', ('A', 'B'))
|
||||
port_names = kwargs.pop('port_names', ('A', 'B'))
|
||||
tree = self.traceS(
|
||||
length,
|
||||
jog,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue