Completed
Push — master ( 9d3bc0...b059cb )
by Oleksandr
01:07
created

DefaultProvider.default()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 5
ccs 1
cts 1
cp 1
rs 9.4285
cc 1
crap 1
1
# coding: utf-8
2
3 1
import zope.interface
4
5
6 1
class INISerializable(zope.interface.Interface):
7
8 1
    def from_ini(ini):
9
        """
10
        Get object from a given INI config.
11
12
        """
13
14
15 1
class DefaultProvider(zope.interface.Interface):
16
17 1
    def default(ini):
18
        """
19
        Get object with default values.
20
21
        """
22