[Bug 1812232] Re: Deprecation warnings
Brian Murray
brian at ubuntu.com
Tue Apr 30 22:21:07 UTC 2019
Hello Robie, or anyone else affected,
Accepted pastebinit into disco-proposed. The package will build now and
be available at
https://launchpad.net/ubuntu/+source/pastebinit/1.5-2.2~ubuntu0.19.04.1
in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested and change the tag from
verification-needed-disco to verification-done-disco. If it does not fix
the bug for you, please add a comment stating that, and change the tag
to verification-failed-disco. In either case, without details of your
testing we will not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: pastebinit (Ubuntu Disco)
Status: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-disco
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pastebinit in Ubuntu.
https://bugs.launchpad.net/bugs/1812232
Title:
Deprecation warnings
Status in pastebinit package in Ubuntu:
Fix Released
Status in pastebinit source package in Disco:
Fix Committed
Status in pastebinit source package in Eoan:
Fix Released
Status in pastebinit package in Debian:
Fix Released
Bug description:
[Impact]
Without this fix, scripts which depend on the output of pastebinit
will probably break. It will also confuse the new user, who might
think it is their fault, and annoy the experienced user.
[Test Case]
Running this:
$ echo "test" | pastebinit
Should just produce the URL. Not this:
/usr/bin/pastebinit:42: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
release = platform.linux_distribution()[0].lower()
/usr/bin/pastebinit:413: DeprecationWarning: pasteURLopener style of invoking requests is deprecated. Use newer urlopen functions/methods
url_opener = pasteURLopener()
[Regression Potential]
Little to none. Unless Python itself breaks, the syntax itself should
be correct.
[Original Description]
$ dpkg-query -W pastebinit
pastebinit 1.5-2
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu Disco Dingo (development branch)
Release: 19.04
Codename: disco
$ echo 'a'|pastebinit
/usr/bin/pastebinit:42: DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5
release = platform.linux_distribution()[0].lower()
/usr/bin/pastebinit:413: DeprecationWarning: pasteURLopener style of invoking requests is deprecated. Use newer urlopen functions/methods
url_opener = pasteURLopener()
http://paste.ubuntu.com/p/R4f5RKMWTf/
Expected results: URL output only
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pastebinit/+bug/1812232/+subscriptions
More information about the foundations-bugs
mailing list