From 4c53f911818aa09712bb2784b2a8a9ac6de40d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 8 Oct 2021 17:29:36 +0200 Subject: [PATCH] Parsed changes to OS Commands --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 94671a3..c9fca8b 100644 --- a/index.html +++ b/index.html @@ -1579,7 +1579,7 @@ shutil.rmtree(<path>) # Deletes t

Sends '1 + 1' to the basic calculator and captures its output:

>>> from subprocess import run
->>> run('bc', input='1 + 1\n', capture_output=True, encoding='utf-8')
+>>> run('bc', input='1 + 1\n', capture_output=True, text=True)
 CompletedProcess(args='bc', returncode=0, stdout='2\n', stderr='')