-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
Description
Now that we're python 3+, we can remove the following:
detect-secrets-server/detect_secrets_server/adhoc/github/webhook.py
Lines 10 to 19 in cf25d3e
| except ImportError: # pragma: no cover | |
| import sys | |
| from contextlib import contextmanager | |
| @contextmanager | |
| def redirect_stdout(target): | |
| original = sys.stdout | |
| sys.stdout = target | |
| yield | |
| sys.stdout = original |
(Still reusing some code from this project :D)
bl-ue