diff options
author | Dafydd Harries <daf@rhydd.org> | 2013-03-17 16:44:02 -0400 |
---|---|---|
committer | Dafydd Harries <daf@rhydd.org> | 2013-03-17 16:44:02 -0400 |
commit | 17b3f4cafad2b5a7fb0dda631aafb8f9d13ec574 (patch) | |
tree | 6ea133d63b8f402038eb894a64c4e84d29cea031 | |
parent | 25485d5c43431a115fa9ee17d0d0547a29646e78 (diff) |
don't try to limit copyright fields to a known subset
(for now)
-rw-r--r-- | load_copyright.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/load_copyright.py b/load_copyright.py index 4016857..dee5351 100644 --- a/load_copyright.py +++ b/load_copyright.py @@ -28,9 +28,10 @@ def read_copyright(fh): files = [] licences = [] - file_fields = set([ - 'Authors', 'Files', 'Comment', 'Copyright', 'Disclaimer', 'Homepage', - 'License', 'License-Alias', 'Upstream-Authors', 'X-Comment']) + #file_fields = set([ + # 'Authors', 'Files', 'Comment', 'Copyright', 'Disclaimer', 'Homepage', + # 'License', 'License-Alias', 'Upstream-Authors', 'X-Comment', + # 'X-Notes']) for (type, d) in paras: type = type.replace('Licence', 'License') @@ -44,8 +45,8 @@ def read_copyright(fh): if 'License' not in d: raise ValueError('no license: ' + repr(d)) - keys = set(d.keys()) - assert keys <= file_fields, keys + #keys = set(d.keys()) + #assert keys <= file_fields, keys files.append(d) elif type == 'License': # XXX constrain permissible keys here? |