[Bug 1812232] Re: Deprecation warnings

Simon Quigley tsimonq2 at ubuntu.com
Fri Apr 19 22:58:10 UTC 2019


** Description changed:

+ [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()
+   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()
+   url_opener = pasteURLopener()
  http://paste.ubuntu.com/p/R4f5RKMWTf/
  
  Expected results: URL output only

** Also affects: pastebinit (Ubuntu Eoan)
   Importance: Low
       Status: Confirmed

** Also affects: pastebinit (Ubuntu Disco)
   Importance: Undecided
       Status: New

** Changed in: pastebinit (Ubuntu Disco)
     Assignee: (unassigned) => Simon Quigley (tsimonq2)

** Changed in: pastebinit (Ubuntu Eoan)
     Assignee: (unassigned) => Simon Quigley (tsimonq2)

** Changed in: pastebinit (Ubuntu Disco)
   Importance: Undecided => Medium

** Changed in: pastebinit (Ubuntu Eoan)
   Importance: Low => Medium

** Changed in: pastebinit (Ubuntu Disco)
       Status: New => In Progress

** Changed in: pastebinit (Ubuntu Eoan)
       Status: Confirmed => In Progress

-- 
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:
  In Progress
Status in pastebinit source package in Disco:
  In Progress
Status in pastebinit source package in Eoan:
  In Progress
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