MCPcopy Index your code
hub / github.com/pyload/pyload / _l2bytes

Function _l2bytes

module/lib/feedparser.py:110–119  ·  view source on GitHub ↗
(l)

Source from the content-addressed store, hash-verified

108 return s
109
110def _l2bytes(l):
111 # Convert a list of ints to bytes if the interpreter is Python 3
112 try:
113 if bytes is not str:
114 # In Python 2.6 and above, this call won't raise an exception
115 # but it will return bytes([65]) as '[65]' instead of 'A'
116 return bytes(l)
117 raise NameError
118 except NameError:
119 return ''.join(map(chr, l))
120
121# If you want feedparser to allow all URL schemes, set this to ()
122# List culled from Python's urlparse documentation at:

Callers 3

_ebcdic_to_asciiFunction · 0.85
_getCharacterEncodingFunction · 0.85
_toUTF8Function · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected