[Eric] A glitch in warning of "unused" files

Algis Kabaila akabaila at pcug.org.au
Fri Aug 19 05:47:02 BST 2011


Hi Detlev,

The attached script shows how a required file is marked as unused with a 
warning.  The warning is 

Warning: "qrc_hi" imported but unused.

However, in line 27 of hi.py the qrc_hi is used, though the reference to it is 
indirect and in a rather obscure format.  I attach the script hi.py, hi.qrc, 
hi.ui and an icon from a  small collection of icons, to enable an  independent 
verification. The XML file hi.qrc shows how the "document-new.png" fits in the 
small package of icons.

The debugger check of unused files and variables has proved itself extremely 
useful, at least for me - I was really surprised how many times I had unused 
variables and files - thank you for such a useful facility!

Regards,
Al.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hi.ui
Type: application/x-designer
Size: 1279 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/eric/attachments/20110819/3a36ecea/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hi.py
Type: text/x-python
Size: 1460 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/eric/attachments/20110819/3a36ecea/attachment.py>
-------------- next part --------------
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file alias="hi.png">select_tango/32x32/actions/document-new.png</file>
</qresource>
</RCC>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: document-new.png
Type: image/png
Size: 1008 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/eric/attachments/20110819/3a36ecea/attachment.png>


More information about the Eric mailing list