file -> open for python 3 compat
This commit is contained in:
parent
73e6ac628e
commit
0bb8e3999f
|
@ -69,4 +69,5 @@ rss = rssgen.RSS2(
|
|||
lastBuildDate = datetime.datetime.now(),
|
||||
items = items)
|
||||
|
||||
file(RSS_PATH, 'w').write(rss.to_xml())
|
||||
with open(RSS_PATH, 'w') as fp:
|
||||
fp.write(rss.to_xml())
|
||||
|
|
Loading…
Reference in New Issue