forked from platformio/platformio-core
Specify encoding for "open()" functions
This commit is contained in:
1 parent
b9219a2b62
commit
d819617d2b
28 files changed
+63
-43
No files matched your search
+1
-1
@@ -158,7 +158,7 @@ def is_container():
|
||||
return True
|
||||
if not os.path.isfile("/proc/1/cgroup"):
|
||||
return False
|
||||
with open("/proc/1/cgroup") as fp:
|
||||
with open("/proc/1/cgroup", encoding="utf8") as fp:
|
||||
return ":/docker/" in fp.read()
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user