Completed
Push — master ( 9d90ba...7d87fd )
by P.R.
01:17
created

FalseCondition   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A match() 0 9 1
1
"""
2
ETLT
3
4
Copyright 2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
from etlt.condition.SimpleCondition import SimpleCondition
9
10
11
class FalseCondition(SimpleCondition):
12
    """
13
    A false condition always evaluates to False.
14
    """
15
16
    # ------------------------------------------------------------------------------------------------------------------
17
    def match(self, row):
18
        """
19
        Always returns False.
20
21
        :param dict row: The row, ignored
22
23
        :rtype: False
24
        """
25
        return False
26
27
# ----------------------------------------------------------------------------------------------------------------------
28