Last active
August 29, 2015 14:04
-
-
Save cwshu/944586b01a5ccd685397 to your computer and use it in GitHub Desktop.
get false command(return 0) output by check_output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess as sub | |
out = sub.check_output("diff NEWS NEWS.old || true", shell=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment