On Sunday, October 16, 2016 at 11:50:00 AM UTC-5, Edward K. Ream wrote:
> On Sunday, October 16, 2016 at 11:18:02 AM UTC-5, Edward K. Ream wrote:
> p = subprocess.Popen(
>>     ["git", "log" , '-1', '--date=default-local'],
>>     stdout=subprocess.PIPE,
>>     shell=True)
When this code is run outside a git repo, git log will issue a "fatal" 
error. This will typically be true when the user is running an "official" 
release. We can suppress such irrelevant messages by adding this arg to the 
call to subprocess.Popen:

    stderr=None if trace else subprocess.DEVNULL,


You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to