개정판 2adcd5e7
issue 563: fix indent
Change-Id: I5cf5f703614791b229aa67e4b32428d89984d075
DTI_PID/DTI_PID/Shapes/SymbolSvgItem.py | ||
---|---|---|
2040 | 2040 |
types = [conn.connectedItem.lineType for conn in self.connectors if conn.connectedItem and type(conn.connectedItem) is QEngineeringLineItem] |
2041 | 2041 |
if [line_type for line_type in value[2] if line_type in types]: |
2042 | 2042 |
if not value[5]: |
2043 |
new_codes.append([0 if not value[6] else value[6], value[4]])
|
|
2044 |
else:
|
|
2045 |
new_codes.append([0 if not value[6] else value[6], eval(value[5])])
|
|
2043 |
new_codes.append([0 if not value[6] else value[6], value[4]]) |
|
2044 |
else: |
|
2045 |
new_codes.append([0 if not value[6] else value[6], eval(value[5])]) |
|
2046 | 2046 |
|
2047 | 2047 |
# self attribute |
2048 | 2048 |
elif len(value[2]) == 1 and not value[2][0] and value[3][0]: |
2049 | 2049 |
for key, _value in self.attrs.items(): |
2050 | 2050 |
if _value in value[3]: |
2051 | 2051 |
if not value[5]: |
2052 |
new_codes.append([0 if not value[6] else value[6], value[4]])
|
|
2053 |
else:
|
|
2054 |
new_codes.append([0 if not value[6] else value[6], eval(value[5])])
|
|
2052 |
new_codes.append([0 if not value[6] else value[6], value[4]]) |
|
2053 |
else: |
|
2054 |
new_codes.append([0 if not value[6] else value[6], eval(value[5])]) |
|
2055 | 2055 |
|
2056 | 2056 |
# symbol + attribute |
2057 | 2057 |
elif value[2][0] and value[3][0]: |
내보내기 Unified diff