diff options
Diffstat (limited to 'lib/git_python/utils.py')
-rw-r--r-- | lib/git_python/utils.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/git_python/utils.py b/lib/git_python/utils.py index c2140ba0..f367c3e2 100644 --- a/lib/git_python/utils.py +++ b/lib/git_python/utils.py @@ -3,3 +3,9 @@ def dashify(string): def touch(filename): open(filename, "a").close() + +def pop_key(d, key): + value = d.get(key, None) + if key in d: + del d[key] + return value |