deprecation warnings

Bug #1844128 reported by Seth Arnold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pastebinit (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Hello, there's several deprecation warnings in pastebinit's output lately:

$ echo ignore me | 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/sxrx5F7kss/

Thanks

ProblemType: Bug
DistroRelease: Ubuntu 19.04
Package: pastebinit 1.5-2
ProcVersionSignature: Ubuntu 5.0.0-27.28-generic 5.0.21
Uname: Linux 5.0.0-27-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
Date: Mon Sep 16 12:30:32 2019
PackageArchitecture: all
ProcEnviron:
 TERM=rxvt-unicode-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: pastebinit
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Seth Arnold (seth-arnold) wrote :
Lukas Märdian (slyon)
Changed in pastebinit (Ubuntu):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pastebinit - 1.5.1-1ubuntu1

---------------
pastebinit (1.5.1-1ubuntu1) devel; urgency=medium

  * d/p/0001-Fix-pasting-files-to-JSON-based-bins.patch:
    - Fix pasting files to JSON based bins. (LP: #1785821)
  * d/p/0002-Allow-private-to-be-configured.patch:
    - Allow 'private' to be configured.
  * d/p/0003-Update-Openstack-s-pastebin-site-paste.openstack.org.patch:
    - Update Openstack's pastebin site, paste.openstack.org → paste.opendev.org
  * d/p/0004-Fix-distro.linux_distribution-deprecation.patch:
    - Fix distro.linux_distribution deprecation. (LP: #1844128)
  * d/copyright: Correct paths.
  * d/control:
    - Replace d/compat with debhelper-compat, bump to 13.
    - R³: no.
  * Update Standards-Version to 4.6.0.

 -- Unit 193 <email address hidden> Tue, 23 Nov 2021 21:53:34 -0500

Changed in pastebinit (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.