Skip to content

Commit

Permalink
docs: Fixed E721 in gunittest/ (#4549)
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit authored Oct 18, 2024
1 parent 62b001b commit 5cff700
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ per-file-ignores =
# TODO: Is this really needed?
python/grass/pygrass/vector/__init__.py: E402
python/grass/pygrass/raster/__init__.py: E402
python/grass/gunittest/invoker.py: E721
python/grass/pygrass/vector/__init__.py: E402
python/grass/pygrass/modules/interface/*.py: F401
python/grass/pygrass/modules/grid/*.py: F401
Expand All @@ -82,13 +81,11 @@ per-file-ignores =
python/grass/temporal/temporal_granularity.py: E722
python/grass/temporal/temporal_raster_base_algebra.py: E722
python/grass/temporal/temporal_topology_dataset_connector.py: E722
python/grass/temporal/univar_statistics.py: E231
# Current benchmarks/tests are changing sys.path before import.
# Possibly, a different approach should be taken there anyway.
python/grass/pygrass/tests/benchmark.py: E402, F401, F821
# Configuration file for Sphinx:
# Ignoring import/code mix and line length.
python/grass/docs/conf.py: E402
# Files not managed by Black
python/grass/imaging/images2gif.py: E226
# Unused imports in init files
Expand Down
2 changes: 1 addition & 1 deletion python/grass/gunittest/invoker.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def try_decode(data, encodings):

Path(stdout_path).write_text(stdout)
with open(stderr_path, "w") as stderr_file:
if type(stderr) == "bytes":
if isinstance(stderr, bytes):
stderr_file.write(decode(stderr))
elif isinstance(stderr, str):
stderr_file.write(stderr)
Expand Down

0 comments on commit 5cff700

Please sign in to comment.