diff options
Diffstat (limited to 'src/ee/part')
-rw-r--r-- | src/ee/part/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ee/part/__init__.py b/src/ee/part/__init__.py index deeab95..53835df 100644 --- a/src/ee/part/__init__.py +++ b/src/ee/part/__init__.py @@ -219,10 +219,10 @@ class Part(object): @property def printable_reference(self): - for refs, value in [(self.get_schematic_references(), lambda sr: sr.referenceProp), + for refs, value in ((self.get_schematic_references(), lambda sr: sr.referenceProp), (self.get_part_references(), lambda pr: pr.part_uriProp), (self.get_mpns(), lambda mpn: mpn.valueProp), - (self.get_spns(), lambda spn: spn.valueProp)]: + (self.get_spns(), lambda spn: spn.valueProp)): ref = next(iter(refs), None) if ref: return value(ref) |