From 1d8d6595e079f024360d74aad79681893d68bfea Mon Sep 17 00:00:00 2001 From: Bruce Guenter Date: Thu, 8 Feb 2018 12:39:43 -0600 Subject: [PATCH] Add .pyo to the Python temporary file ignore Python, when invoked with the -O option, writes compiled code to .pyo files instead of .pyc. Add this to the default ignores list. --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index f095db4..918cf3e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -146,7 +146,7 @@ pub fn get_args() -> Args { let mut ignores = vec![]; let default_ignores = vec![format!("**{}.DS_Store", MAIN_SEPARATOR), - String::from("*.pyc"), + String::from("*.py[co]"), String::from("#*#"), String::from(".#*"), String::from(".*.sw?"),