summaryrefslogtreecommitdiffstats
path: root/nikola/plugins/command_new_post.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2013-02-27 09:13:24 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2013-02-27 09:13:24 -0300
commit878ba1152ebc64a4a2609d23c9e400a6111db642 (patch)
tree7672c12a59dbab1864606109e4f2b1dd7534043c /nikola/plugins/command_new_post.py
parenta40930043121a4b60de8526d58417761a54ab718 (diff)
Imported Upstream version 5.3upstream/5.3
Diffstat (limited to 'nikola/plugins/command_new_post.py')
-rw-r--r--nikola/plugins/command_new_post.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nikola/plugins/command_new_post.py b/nikola/plugins/command_new_post.py
index a5715de..9b6397b 100644
--- a/nikola/plugins/command_new_post.py
+++ b/nikola/plugins/command_new_post.py
@@ -110,9 +110,11 @@ class CommandNewPost(Command):
print("-----------------\n")
if title is None:
print("Enter title: ", end='')
+ # WHY, PYTHON3???? WHY?
+ sys.stdout.flush()
title = sys.stdin.readline()
else:
- print("Title: ", title)
+ print("Title:", title)
if isinstance(title, bytes):
title = title.decode(sys.stdin.encoding)
title = title.strip()