Test Failed
Push — develop ( 20bb73...3c901c )
by Dean
02:47
created

compile_list()   A

Complexity

Conditions 2

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %
Metric Value
cc 2
dl 0
loc 7
rs 9.4285
1
from re import *
0 ignored issues
show
Bug Best Practice introduced by
This seems to re-define the built-in compile.

It is generally discouraged to redefine built-ins as this makes code very hard to read.

Loading history...
Coding Style introduced by
The usage of wildcard imports like re should generally be avoided.
Loading history...
2
3
4
def compile_list(patterns, flags=0):
5
    result = []
6
7
    for pattern in patterns:
8
        result.append(compile(pattern, flags))
9
10
    return result
11