MCPcopy Create free account
hub / github.com/theskumar/python-dotenv / read

Method read

src/dotenv/parser.py:83–88  ·  view source on GitHub ↗
(self, count: int)

Source from the content-addressed store, hash-verified

81 return self.string[self.position.chars:self.position.chars + count]
82
83 def read(self, count: int) -> str:
84 result = self.string[self.position.chars:self.position.chars + count]
85 if len(result) < count:
86 raise Error("read: End of string")
87 self.position.advance(result)
88 return result
89
90 def read_regex(self, regex: Pattern[str]) -> Sequence[str]:
91 match = regex.match(self.string, self.position.chars)

Callers 13

read_filesFunction · 0.80
setup.pyFile · 0.80
__init__Method · 0.80
test_set_quote_optionsFunction · 0.80
test_set_exportFunction · 0.80
test_set_keyFunction · 0.80
test_set_key_encodingFunction · 0.80
test_unset_with_valueFunction · 0.80
test_unset_no_valueFunction · 0.80

Calls 2

ErrorClass · 0.85
advanceMethod · 0.80

Tested by 10

test_set_quote_optionsFunction · 0.64
test_set_exportFunction · 0.64
test_set_keyFunction · 0.64
test_set_key_encodingFunction · 0.64
test_unset_with_valueFunction · 0.64
test_unset_no_valueFunction · 0.64
test_unset_encodingFunction · 0.64