[GRASS-git] [OSGeo/grass] 51fc3d: gunittest: Deduplicate output decoding code (#1539)
noreply at github.com
Mon May 10 17:40:03 PDT 2021
Author: Vaclav Petras <wenzeslaus at gmail.com>
Date: 2021-05-10 (Mon, 10 May 2021)
gunittest: Deduplicate output decoding code (#1539)
* Resolves code duplication between stdout and stderr decoding.
* Removes while, use of indices, and control variable.
* Documents the operation (although not the motivation).
* Adds direct bytes.decode call with replace as a fallback.
* Uses UnicodeError instead of the bare except (original motivation for this change).
More information about the grass-commit