Return a string listing hex without all the single quotes. >>> l = range(10) >>> print hexWithoutQuotes(l) [0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9]
(l)
| 2980 | return errorString.value |
| 2981 | |
| 2982 | def hexWithoutQuotes(l): |
| 2983 | """ Return a string listing hex without all the single quotes. |
| 2984 | |
| 2985 | >>> l = range(10) |
| 2986 | >>> print hexWithoutQuotes(l) |
| 2987 | [0x0, 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8, 0x9] |
| 2988 | |
| 2989 | """ |
| 2990 | return str([hex (i) for i in l]).replace("'", "") |