Merge lp:~arnouten/pastebinit/python38 into lp:pastebinit

Proposed by raboof
Status: Needs review
Proposed branch: lp:~arnouten/pastebinit/python38
Merge into: lp:pastebinit
Diff against target: 14 lines (+2/-2)
1 file modified
pastebinit (+2/-2)
To merge this branch: bzr merge lp:~arnouten/pastebinit/python38
Reviewer Review Type Date Requested Status
Pastebinit Developers Pending
Review via email: mp+393723@code.launchpad.net

Commit message

use the 'distro' module instead of the method on 'platform' that is removed in Python 3.8

To post a comment you must log in.

Unmerged revisions

264. By Arnout Engelen <email address hidden>

use distro module instead of deprecated/removed platform functionality

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'pastebinit'
2--- pastebinit 2018-07-04 00:46:08 +0000
3+++ pastebinit 2020-11-13 14:34:12 +0000
4@@ -38,8 +38,8 @@
5
6 # Now try to override it with a distributor pastebin
7 try:
8- import platform
9- release = platform.linux_distribution()[0].lower()
10+ import distro
11+ release = distro.linux_distribution()
12 if release == 'debian':
13 defaultPB = "paste.debian.net"
14 elif release == 'fedora':

Subscribers

People subscribed via source and target branches

to all changes: