@@ -2,7 +2,7 @@ use super::kwc::{KeywordCounter, KeywordCounterSet};
2
2
use regex:: Regex ;
3
3
use serde:: { Deserialize , Serialize } ;
4
4
use std:: collections:: HashSet ;
5
- use tracing:: { info , trace, warn} ;
5
+ use tracing:: { debug , trace, warn} ;
6
6
7
7
/// # PRIVACY REMINDER
8
8
/// Any additions to this struct should be considered for clean up before submission to stackmuncher.com
@@ -163,7 +163,7 @@ impl Tech {
163
163
}
164
164
165
165
// Python imports may start with . which needs to be removed
166
- let cap = cap. trim_matches ( '.' ) . to_owned ( ) ;
166
+ let cap = cap. trim_matches ( '.' ) . trim ( ) . to_owned ( ) ;
167
167
168
168
// add the counts depending with different factory functions for different Tech fields
169
169
kw_counter. increment_counters ( kw_counter_factory ( cap, 1 ) ) ;
@@ -281,7 +281,7 @@ impl Tech {
281
281
// .clone() is necessary to remove the local kwc from the list later
282
282
// there should only be a small number of imports per project
283
283
local_imports. push ( kwc. clone ( ) ) ;
284
- info ! ( "Removing local import: {} / {}" , kwc. k, full_file_name) ;
284
+ debug ! ( "Removing local import: {} / {}" , kwc. k, full_file_name) ;
285
285
break ;
286
286
}
287
287
}
0 commit comments