conversions: remove no used local variable

source = source or {} self.source = source
can instead of self.source = source or {}
simplify and clearly the code

Change-Id: I6d00f9969cea7fd0dc4bf0510cf5d159eaf71ebf
This commit is contained in:
xiaozhuangqing 2016-08-24 12:11:35 +08:00
parent 4ce3339670
commit 92fe0220ea

View File

@ -40,10 +40,8 @@ class BaseConversionTransformer(transformer.TransformerBase):
unit and scaling factor (a missing value
connotes no change)
"""
source = source or {}
target = target or {}
self.source = source
self.target = target
self.source = source or {}
self.target = target or {}
super(BaseConversionTransformer, self).__init__(**kwargs)
def _map(self, s, attr):