@@ -35,7 +35,7 @@ def load_license_list(file_name):
35
35
licenses_map = {}
36
36
with codecs .open (file_name , 'rb' , encoding = 'utf-8' ) as lics :
37
37
licenses = json .load (lics )
38
- version , _ , _ = licenses ['licenseListVersion' ].split ('- ' )
38
+ version = licenses ['licenseListVersion' ].split ('. ' )
39
39
for lic in licenses ['licenses' ]:
40
40
if lic .get ('isDeprecatedLicenseId' ):
41
41
continue
@@ -55,7 +55,7 @@ def load_exception_list(file_name):
55
55
exceptions_map = {}
56
56
with codecs .open (file_name , 'rb' , encoding = 'utf-8' ) as excs :
57
57
exceptions = json .load (excs )
58
- version , _ , _ = exceptions ['licenseListVersion' ].split ('- ' )
58
+ version = exceptions ['licenseListVersion' ].split ('. ' )
59
59
for exc in exceptions ['exceptions' ]:
60
60
if exc .get ('isDeprecatedLicenseId' ):
61
61
continue
@@ -66,8 +66,8 @@ def load_exception_list(file_name):
66
66
return version , exceptions_map
67
67
68
68
69
- _version , LICENSE_MAP = load_license_list (_licenses )
70
- LICENSE_LIST_VERSION = Version . from_str ( _version )
69
+ ( _major , _minor ) , LICENSE_MAP = load_license_list (_licenses )
70
+ LICENSE_LIST_VERSION = Version ( major = _major , minor = _minor )
71
71
72
- _version , EXCEPTION_MAP = load_exception_list (_exceptions )
73
- EXCEPTION_LIST_VERSION = Version . from_str ( _version )
72
+ ( _major , _minor ) , EXCEPTION_MAP = load_exception_list (_exceptions )
73
+ EXCEPTION_LIST_VERSION = Version ( major = _major , minor = _minor )
0 commit comments