[diffoscope] 04/04: platform.get_linux_distribution() will break in Python 3.7.

Chris Lamb chris at chris-lamb.co.uk
Tue Aug 9 12:32:54 CEST 2016


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository diffoscope.

commit 6ff039b12ba00c35e27dc26383ee40854821af07
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Aug 9 11:32:46 2016 +0100

    platform.get_linux_distribution() will break in Python 3.7.
    
    platform.linux_distribution()
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/__init__.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/diffoscope/__init__.py b/diffoscope/__init__.py
index 7946075..249e06d 100644
--- a/diffoscope/__init__.py
+++ b/diffoscope/__init__.py
@@ -218,6 +218,8 @@ def get_current_os():
     import platform
     system = platform.system()
     if system == "Linux":
+        # FIXME: Will break under Python 3.7, see:
+        # https://docs.python.org/3/library/platform.html#platform.linux_distribution
         return platform.linux_distribution()[0]
     return system
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list