This is significantly faster than the indirection and
seems to reduce the runtime of the test suite by about
3% on my machine with python 2 (76.121s -> 73.725s,
but I tried only once which is clearly not enough.)
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
"""Return the original bytes passed to main() for an argv argument."""
return x
- def bytes_from_uint(i):
- return chr(i)
+ bytes_from_uint = chr
def bytes_from_byte(b):
return b