Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330145 - www-client/pybugz: fix future warnings with python-2.7
Summary: www-client/pybugz: fix future warnings with python-2.7
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: William Hubbs
URL: http://code.google.com/p/pybugz/issue...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 05:40 UTC by Tim Harder
Modified: 2010-07-29 23:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix future warnings with python-2.7 (0001-fix-future-warnings-when-using-python-2.7.patch,1.49 KB, patch)
2010-07-28 05:41 UTC, Tim Harder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Harder gentoo-dev 2010-07-28 05:40:04 UTC
When running pybugz with python-2.7 a few future warnings are shown. Specifically the following warnings are shown:

FutureWarning: The behavior of this method will change in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.

FutureWarning: This search is broken in 1.3 and earlier, and will be fixed in a future version.  If you rely on the current behaviour, change it to './/long_desc'

The attached patch makes the suggested changes so the warnings do not appear when running pybugz with python-2.7.
Comment 1 Tim Harder gentoo-dev 2010-07-28 05:41:32 UTC
Created attachment 240393 [details, diff]
Fix future warnings with python-2.7

This patch makes the suggested changes so the future warnings aren't outputted when using python-2.7.
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-07-28 20:29:47 UTC
Hello Tim,

can you please report this issue upstream and cross-reverence (with URL field) the upstream report?

Thanksfor the patch, Michael
Comment 3 Tim Harder gentoo-dev 2010-07-28 21:55:24 UTC
(In reply to comment #2)
> can you please report this issue upstream and cross-reverence (with URL field)
> the upstream report?

Done.

Comment 4 William Hubbs gentoo-dev 2010-07-29 23:05:08 UTC
This has been fixed in git upstream and will be included in the next release.