aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/clo_universe.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/clo_universe.py b/python/clo_universe.py
index 58925543..02343884 100644
--- a/python/clo_universe.py
+++ b/python/clo_universe.py
@@ -12,7 +12,7 @@ if os.name=='nt':
elif os.name=='posix':
root = "/home/share/CorpCDOs/"
-workdate = '2012-12-11'
+workdate = '2013-01-04'
universe = os.path.join("data", "clo_universe_intex_" + workdate + ".txt")
def convertToNone(s):
@@ -33,7 +33,7 @@ with open( os.path.join(root, universe), "r") as fh:
for line in dr:
if line['Deal Name'] == 'Unknown Security':
continue
- if line['Latest Update']=='' or line['Latest Update'] is None:
+ if not line['Latest Update']:
break
for key in line.keys():
line[key] = convertToNone(line[key])
@@ -46,7 +46,7 @@ with open( os.path.join(root, universe), "r") as fh:
line["Latest Update"] = line["Paid Down"]
for field in ["Deal Issue Date", "Deal Termination Date", \
"Deal Next Pay Date", "Reinv End Date", "Latest Update"]:
- if line[field] is not None:
+ if line[field]:
try:
line[field] = datetime.datetime.strptime(line[field], '%b %d, %Y').date()
except ValueError: