diff options
Diffstat (limited to 'python/markit_red.py')
| -rw-r--r-- | python/markit_red.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/markit_red.py b/python/markit_red.py index 60e6da8f..3771abc1 100644 --- a/python/markit_red.py +++ b/python/markit_red.py @@ -25,7 +25,7 @@ for report in ['REDEntity', 'REDObligation', 'REDEntityDelta', 'REDObligationDel basedir = os.path.join(root, "Tranche_Data", "Red") -fh = open(os.path.join(basedir, "V9 Red Indices1403548976628.xml")) +fh = open(os.path.join(root, "Tranche_Data", "Red_reports", "V9 Red Indices1412606559411.xml")) e = etree.parse(fh) root = e.getroot() @@ -43,3 +43,4 @@ for c in root.findall('index'): data.append({l.tag: l.text for l in constituent}) data = sorted(data, key=lambda x: x['referenceentity']) csvwriter.writerows(data) +fh.close() |
