aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/plugins/command_new_post.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2013-02-27 09:13:31 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2013-02-27 09:13:31 -0300
commitcb2680529d9447d94546c8c0960f0c4e299af18c (patch)
tree335ce0e66c214a120aa51ac78e25afe6585c1a13 /nikola/plugins/command_new_post.py
parent6e0996d54cad4586645fdc59164708e4b4b9dcec (diff)
parent878ba1152ebc64a4a2609d23c9e400a6111db642 (diff)
Merge tag 'upstream/5.3'
Upstream version 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()