diff options
| author | Max Wittig <max.wittig@siemens.com> | 2020-02-10 08:15:50 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-10 08:15:50 +0100 |
| commit | 066fc9bfdc1d8e6295cb924ea8471268ee869a90 (patch) | |
| tree | 20a78c9ea8d2907bd3fbe83bb8b32db7dce4b5e5 /gitlab/utils.py | |
| parent | 272db2655d80fb81fbe1d8c56f241fe9f31b47e0 (diff) | |
| parent | 1ec1816d7c76ae079ad3b3e3b7a1bae70e0dd95b (diff) | |
| download | gitlab-066fc9bfdc1d8e6295cb924ea8471268ee869a90.tar.gz | |
Merge pull request #1008 from filipowm/feature/feature-flags-additional-config
Add capability to control GitLab features per project or group
Diffstat (limited to 'gitlab/utils.py')
| -rw-r--r-- | gitlab/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gitlab/utils.py b/gitlab/utils.py index 0992ed7..4241787 100644 --- a/gitlab/utils.py +++ b/gitlab/utils.py @@ -55,3 +55,7 @@ def sanitized_url(url): parsed = urlparse(url) new_path = parsed.path.replace(".", "%2E") return parsed._replace(path=new_path).geturl() + + +def remove_none_from_dict(data): + return {k: v for k, v in data.items() if v is not None} |
