diff options
author | 2022-09-18 19:55:55 +0300 | |
---|---|---|
committer | 2022-09-18 19:55:55 +0300 | |
commit | aef4cc71016072829bf773a124a6ea191bfcf82f (patch) | |
tree | 18d3cd8d5250f307f3f02466cd5459c875260ef1 /src | |
parent | version: better locale protection around running git (diff) | |
download | snakeoil-aef4cc71016072829bf773a124a6ea191bfcf82f.tar.gz snakeoil-aef4cc71016072829bf773a124a6ea191bfcf82f.tar.bz2 snakeoil-aef4cc71016072829bf773a124a6ea191bfcf82f.zip |
version: fix env for traversal
Diffstat (limited to 'src')
-rw-r--r-- | src/snakeoil/version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/snakeoil/version.py b/src/snakeoil/version.py index 6eea337..7b9a500 100644 --- a/src/snakeoil/version.py +++ b/src/snakeoil/version.py @@ -56,7 +56,7 @@ def get_version(project, repo_file, api_version=None): def _run_git(path, cmd): env = dict(os.environ) - for key in env: + for key in env.copy(): # pragma: no cover if key.startswith("LC_"): del env[key] env["LC_CTYPE"] = "C" |