aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2022-09-18 19:55:55 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2022-09-18 19:55:55 +0300
commitaef4cc71016072829bf773a124a6ea191bfcf82f (patch)
tree18d3cd8d5250f307f3f02466cd5459c875260ef1
parentversion: better locale protection around running git (diff)
downloadsnakeoil-aef4cc71016072829bf773a124a6ea191bfcf82f.tar.gz
snakeoil-aef4cc71016072829bf773a124a6ea191bfcf82f.tar.bz2
snakeoil-aef4cc71016072829bf773a124a6ea191bfcf82f.zip
version: fix env for traversal
-rw-r--r--src/snakeoil/version.py2
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"