blob: ee7245c03faac687b693621b3c643560086a30e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Fix DeprecationWarning
--- a/pastebinit
+++ b/pastebinit
@@ -32,8 +32,7 @@
# Now try to override it with a distributor pastebin
try:
import distro
- release = distro.linux_distribution(
- full_distribution_name=False)[0].lower()
+ release = distro.id()
if release == 'debian':
defaultPB = "paste.debian.net"
elif release == 'fedora':
|