SilentGhost added the comment:

I understand that you're copying approach of has_function, but shouldn't you 
remove this temporary file at the end of the function? Perhaps using 
tempfile.NamedTemporaryFile would be a better solution (both in has_flag and 
has_function). Also import can be moved to the top level, since it's used in 
more than one method.

----------

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

Reply via email to