(l)
| 108 | return s |
| 109 | |
| 110 | def _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: |
no test coverage detected