Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Bring strings utils across so that gk-collections/develop can use them.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Turner committed Jun 7, 2017
1 parent 6331f0b commit 3377462
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions icekit/utils/strings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def is_empty(value):
"""
Return `True` if the given value is `None` or empty after `strip()`
"""
return value is None or not value.strip()

0 comments on commit 3377462

Please sign in to comment.