parent:
bc795ff2c88a7e6d3e63e0ae5a1a7c985d2fd7dd
nmyk <nick.mykins@gmail.com>
2014-11-07T17:29:34-05:00
more moo
diff --git a/deploy.py b/deploy.py
index 31f25fed0250a4473e88bdc543b14ad56042f3fe..996228da67affc0376b2c36b8b006ef1f213d8c1 100644
--- a/deploy.py
+++ b/deploy.py
@@ -29,13 +29,13 @@ def cowmain():
os.chdir(COWPOSTPATH)
cowlinelists = []
for cowpostfile in os.listdir(COWPOSTPATH):
- with open(cowpostfile, 'r') as f:
- cowlinelists.append(f.readlines())
+ with open(cowpostfile, 'r') as moo:
+ cowlinelists.append(moo.readlines())
cowdict = make_cowdict(cowlinelists)
cowposts = cowblogsort(cowdict)
cowtemplate = template_env.get_template('cowtemplate.html')
- with open(PATH + '/public_html/index.html', 'w') as f:
- f.write(cowtemplate.render(cowposts=cowposts))
+ with open(PATH + '/public_html/index.html', 'w') as moo:
+ moo.write(cowtemplate.render(cowposts=cowposts))
if __name__ == '__main__':