fix three print statement

This commit is contained in:
Andrea Crotti 2012-03-07 12:14:13 +00:00
commit 2e0e893a9b

View file

@ -71,7 +71,7 @@ def dc2fields(file):
else: else:
posts.append(line) posts.append(line)
print "%i posts read." % len(posts) print("%i posts read." % len(posts))
for post in posts: for post in posts:
fields = post.split('","') fields = post.split('","')
@ -205,7 +205,7 @@ def fields2pelican(fields, out_markup, output_path, dircat=False):
else: else:
out_filename = os.path.join(output_path, filename+ext) out_filename = os.path.join(output_path, filename+ext)
print out_filename print(out_filename)
if in_markup == "html": if in_markup == "html":
html_filename = os.path.join(output_path, filename+'.html') html_filename = os.path.join(output_path, filename+'.html')
@ -259,7 +259,7 @@ def main():
elif args.feed: elif args.feed:
input_type = 'feed' input_type = 'feed'
else: else:
print "you must provide either --wpfile, --dotclear or --feed options" print("you must provide either --wpfile, --dotclear or --feed options")
exit() exit()
if not os.path.exists(args.output): if not os.path.exists(args.output):