Message332331
One regex related code pattern that I generally like is to assign bound methods to good names and use those. In this case, I would write
_has_non_base16_digits = re.compile(b'[^0-9A-F]').search
...
if _has_non_base16_digits(s):
raise ... |
|
Date |
User |
Action |
Args |
2018-12-22 07:42:08 | scoder | set | recipients:
+ scoder, serhiy.storchaka, xtreak, djhoulihan |
2018-12-22 07:42:06 | scoder | set | messageid: <1545464526.85.0.98272194251.issue35559@roundup.psfhosted.org> |
2018-12-22 07:42:06 | scoder | link | issue35559 messages |
2018-12-22 07:42:06 | scoder | create | |
|