MCPcopy Index your code
hub / github.com/theskumar/python-dotenv / read

Method read

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

Source from the content-addressed store, hash-verified

88 return self.string[self.position.chars : self.position.chars + count]
89
90 def read(self, count: int) -> str:
91 result = self.string[self.position.chars : self.position.chars + count]
92 if len(result) < count:
93 raise Error("read: End of string")
94 self.position.advance(result)
95 return result
96
97 def read_regex(self, regex: Pattern[str]) -> Sequence[str]:
98 match = regex.match(self.string, self.position.chars)

Callers 1

__init__Method · 0.80

Calls 2

ErrorClass · 0.85
advanceMethod · 0.80

Tested by

no test coverage detected