[Groonga-commit] groonga/groonga at 0cc84ae [master] doc update-example: add missing None check

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 13 12:44:17 JST 2016


Kouhei Sutou	2016-10-13 12:44:17 +0900 (Thu, 13 Oct 2016)

  New Revision: 0cc84ae5a6f21f2018ad30c921b73c429d3eb5bf
  https://github.com/groonga/groonga/commit/0cc84ae5a6f21f2018ad30c921b73c429d3eb5bf

  Message:
    doc update-example: add missing None check

  Modified files:
    doc/update_execution_example.py

  Modified: doc/update_execution_example.py (+1 -1)
===================================================================
--- doc/update_execution_example.py    2016-10-13 12:44:02 +0900 (d1ea677)
+++ doc/update_execution_example.py    2016-10-13 12:44:17 +0900 (d34f2fa)
@@ -163,7 +163,7 @@ def execmd(command, fout):
               formatted_log = first_lines_re.sub(prefix, log)
               stdout.write(first_lines_re.sub(prefix, log))
               stdout.write("\n")
-              if output_log:
+              if output_log and fout:
                 fout.write(formatted_log)
                 fout.write("\n")
           output_buffer = ""
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index