Browse Source

Merge pull request #111 from imba-tjd/patch-1

subprocess.run: encoding -> text=True
pull/115/head
Jure Šorn 3 years ago
committed by GitHub
parent
commit
6341ac577e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -1704,7 +1704,7 @@ import os
#### Sends '1 + 1' to the basic calculator and captures its output:
```python
>>> 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='')
```

Loading…
Cancel
Save