MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / read_stringnl

Function read_stringnl

Lib/pickletools.py:262–309  ·  view source on GitHub ↗

r""" >>> import StringIO >>> read_stringnl(StringIO.StringIO("'abcd'\nefg\n")) 'abcd' >>> read_stringnl(StringIO.StringIO("\n")) Traceback (most recent call last): ... ValueError: no string quotes around '' >>> read_stringnl(StringIO.StringIO("\n"), stripquotes=Fals

(f, decode=True, stripquotes=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

read_stringnl_noescapeFunction · 0.85
read_decimalnl_shortFunction · 0.85
read_decimalnl_longFunction · 0.85
read_floatnlFunction · 0.85

Calls 4

endswithMethod · 0.80
startswithMethod · 0.80
readlineMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected