blob: f4acc35dbcde949a48a4c3b755c71af654a9e16a [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 base import BaseListMerger
10
11class ListExtend(BaseListMerger):
12
13 def _combine(self, first, second):
14 if isinstance(second, list):
15 first.extend(second)
16 else:
17 first.append(second)
18 return first