blob: 54770a3d73af8f59aec20f39399edf6fb79ba98c [file] [log] [blame]
martin f. krafftf37f0682013-06-14 16:36:20 +02001#
2# -*- coding: utf-8 -*-
3#
4# This file is part of reclass (http://github.com/madduck/reclass)
5#
6# Copyright © 2007–13 martin f. krafft <madduck@madduck.net>
7# Released under the terms of the Artistic Licence 2.0
8#
9from extend import BaseListMerger
10
11class SetExtend(BaseListMerger):
12
13 def _combine(self, first, second):
martin f. kraffta95eaa32013-06-16 11:56:41 +020014 if second is not None:
15 for i in second:
16 if i not in first:
17 first.append(i)
martin f. krafftf37f0682013-06-14 16:36:20 +020018 return first