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
=== modified file 'pastebinit'
--- pastebinit 2018-07-04 00:46:08 +0000
+++ pastebinit 2020-11-13 14:34:12 +0000
@@ -38,8 +38,8 @@
3838
39# Now try to override it with a distributor pastebin39# Now try to override it with a distributor pastebin
40try:40try:
41 import platform41 import distro
42 release = platform.linux_distribution()[0].lower()42 release = distro.linux_distribution()
43 if release == 'debian':43 if release == 'debian':
44 defaultPB = "paste.debian.net"44 defaultPB = "paste.debian.net"
45 elif release == 'fedora':45 elif release == 'fedora':

Subscribers

People subscribed via source and target branches

to all changes: