MCPcopy Index your code
hub / github.com/RustPython/RustPython / get_skipinitialspace

Method get_skipinitialspace

crates/stdlib/src/csv.rs:721–740  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

719 }
720 }
721 fn get_skipinitialspace(&self) -> bool {
722 let mut skipinitialspace = match &self.dialect {
723 DialectItem::Str(name) => {
724 let g = GLOBAL_HASHMAP.lock();
725 if let Some(dialect) = g.get(name) {
726 dialect.skipinitialspace
727 // RustPython todo
728 // todo! Perfecting the remaining attributes.
729 } else {
730 false
731 }
732 }
733 DialectItem::Obj(obj) => obj.skipinitialspace,
734 _ => false,
735 };
736 if let Some(attr) = self.skipinitialspace {
737 skipinitialspace = attr
738 }
739 skipinitialspace
740 }
741 fn get_delimiter(&self) -> u8 {
742 let mut delimiter = match &self.dialect {
743 DialectItem::Str(name) => {

Callers 1

readerFunction · 0.80

Calls 2

lockMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected