Comment #2 on issue 1739 by michael....@gmail.com: Convert to Hex add 'L'
suffix when input is bigger than 2^31-1
http://code.google.com/p/robotframework/issues/detail?id=1739
maybe you should consider using the __format__ function of the int type.
eg instead of
ret = method(self._convert_to_integer(item, base)).upper()
where method is either hex, oct or bin
you could use
ret = format(self._convert_to_integer(item, base), fmt)
where fmt is either 'X', 'x', 'o', 'b'.
in this case you don't need to strip the suffix and don't need to use
upper(). And you could merge the length handling and probably the prefix
struff into the format string .
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.