Xavier de Gaye added the comment:

IMHO returning an integer for the sdk field would be better. The patch could 
use shutil.which() to avoid subprocess calls when getprop is not available. It 
would be better to use a 'try/except ValueError' clause instead of isdigit(). 
The OSError and UnicodeDecodeError exceptions should not be masked, as well as 
ValueError if sdk cannot be parsed as an int.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26855>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to