On 19/03/18 10:52, Daniel P. Berrangé wrote:
>> -                o = ord(line[i])
>> -                if (o >= 97 and o <= 122) or (o >= 65 and o <= 90) or \
>> -                   (o >= 48 and o <= 57):
>> +                if re.match(r"[a-zA-Z0-9]", line[i]):
> Why not just use   isalnum() function here - it will be massively
> faster than a regex match.
>
Thanks, I didn't know about isalnum(). I will resend the patch.
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to