Skip to content

Commit

Permalink
Use Mask for masking out an environment variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 5, 2023
1 parent 764e9ab commit 6eda107
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jaraco/vcs/subprocess.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import os
import subprocess

from jaraco.collections import Mask

from . import base
from . import cmd

Expand Down Expand Up @@ -44,9 +46,7 @@ def env(self):
in which `hg` is installed, it will cause an exception. See
https://github.com/jaraco/jaraco.vcs/issues/7 for details.
"""
env = os.environ.copy()
env.pop('MACOSX_DEPLOYMENT_TARGET', None)
return env
return Mask(['MACOSX_DEPLOYMENT_TARGET'], os.environ)


class Git(Subprocess, cmd.Git, base.Repo):
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ install_requires =
jaraco.classes
more_itertools
jaraco.versioning
jaraco.collections

[options.packages.find]
exclude =
Expand Down

0 comments on commit 6eda107

Please sign in to comment.