Fix os-release open mode

- thanks to @Lvl4Sword for reporting
This commit is contained in:
Peter Šurda 2017-05-12 14:39:25 +02:00
parent fd2603247d
commit 82c3c111b7
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87
1 changed files with 1 additions and 1 deletions

View File

@ -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="):