mirror of
https://github.com/kennethreitz/neon-api-python.git
synced 2026-06-05 22:50:18 +00:00
Add compact_mapping function and NeonClientException class
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
def compact_mapping(obj):
|
||||
"""Compact a mapping by removing None values."""
|
||||
|
||||
return {k: v for k, v in obj.items() if v is not None}
|
||||
Reference in New Issue
Block a user