Bug#712513: python-debian: PkgRelation.parse_relations() prints warning on stderr

Jakub Wilk jwilk at debian.org
Sun Jun 16 16:01:41 UTC 2013


Source: python-debian
Version: 0.1.21+nmu2

PkgRelation.parse_relations() does this:

                 print('deb822.py: WARNING: cannot parse package' \
                       ' relationship "%s", returning it raw' % raw,
                       file=sys.stderr)

Please use the warnings[0] mechanism instead, so that applications can 
easily suppress the warning, or turn it into an exception if they wish 
so.


[0] http://docs.python.org/2/library/warnings.html

-- 
Jakub Wilk



More information about the pkg-python-debian-maint mailing list