From 82c3c111b7acf64cacc7834042fd2233cbc3f9a3 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Fri, 12 May 2017 14:39:25 +0200 Subject: [PATCH] Fix os-release open mode - thanks to @Lvl4Sword for reporting --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 98b7fbd9..a04c51d4 100644 --- a/setup.py +++ b/setup.py @@ -100,7 +100,7 @@ def detectOS(): elif sys.platform.startswith('win'): detectOS.result = "Windows" elif os.path.isfile("/etc/os-release"): - with open("/etc/os-release", 'rt') as osRelease: + with open("/etc/os-release", 'r') as osRelease: version = None for line in osRelease: if line.startswith("NAME="):