aboutsummaryrefslogtreecommitdiff
path: root/pyblog
diff options
context:
space:
mode:
authorZhiming Wang <zmwangx@gmail.com>2015-05-06 14:01:15 -0700
committerZhiming Wang <zmwangx@gmail.com>2015-05-06 14:01:15 -0700
commit99275639872bfa8c9aa62da790298a7b66bde4ef (patch)
tree636191ad0d6869e5a2bdcdaddaeb9fbea4497123 /pyblog
parente56f5d61c66c119f2b7a8111df50b2b19c41e5b0 (diff)
downloadmy_new_personal_website-99275639872bfa8c9aa62da790298a7b66bde4ef.tar.xz
my_new_personal_website-99275639872bfa8c9aa62da790298a7b66bde4ef.zip
improve Why Oh My Zsh is completely broken
Diffstat (limited to 'pyblog')
-rwxr-xr-xpyblog4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyblog b/pyblog
index 6d051c9c..19dfc865 100755
--- a/pyblog
+++ b/pyblog
@@ -730,6 +730,7 @@ def preview(args):
sigint_raised = False
def sigint_mitigator(signum, frame):
+ """Translate SIGINT to setting the sigint_raised flag."""
nonlocal sigint_raised
sigint_raised = True
@@ -772,7 +773,8 @@ def main():
1am). Therefore, one may want to retouch the timestamp before
publishing.""")
parser_new_post.add_argument("filename",
- help="path or basename of the source file, e.g., 2015-05-05-new-blog-new-start.md")
+ help="path or basename of the source file, "
+ "e.g., 2015-05-05-new-blog-new-start.md")
parser_new_post.set_defaults(func=touch)
parser_generate = subparsers.add_parser(