Commit 83e183f9 authored by Jean Aunis's avatar Jean Aunis

code style fixes: corrected indentation, removed unused import

parent 50a938b0
......@@ -58,7 +58,7 @@ class AbstractMapping(object):
value = getattr(src_object, src_field)
setattr(dst_object, dst_field, value)
for dst_field, cast_fct in cast.iteritems():
value = getattr(dst_object, dst_field)
if (value is not None):
setattr(dst_object, dst_field, cast_fct(value))
value = getattr(dst_object, dst_field)
if (value is not None):
setattr(dst_object, dst_field, cast_fct(value))
return dst_object
......@@ -15,7 +15,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
from xivo_dao.alchemy.userfeatures import UserFeatures
from xivo_dao.mapping_alchemy_sdm import user_mapping
from xivo_dao.service_data_model.user_sdm import UserSdm
import unittest
from xivo_dao.mapping_alchemy_sdm.user_mapping import UserMapping
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment