diff options
author | miwi <miwi@FreeBSD.org> | 2018-07-28 20:21:38 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2018-07-28 20:21:38 +0800 |
commit | 7a1eeb492e9fd41da27f3f51873b532d0a6cd7cf (patch) | |
tree | 6e1b21c68ce87ba039d072fbc35989eabbdd6779 /textproc | |
parent | 31ca5446fa3fb1c45276cec8c267a0e8be3732bb (diff) | |
download | freebsd-ports-gnome-7a1eeb492e9fd41da27f3f51873b532d0a6cd7cf.tar.gz freebsd-ports-gnome-7a1eeb492e9fd41da27f3f51873b532d0a6cd7cf.tar.zst freebsd-ports-gnome-7a1eeb492e9fd41da27f3f51873b532d0a6cd7cf.zip |
Commons of Python micro-functions. This is basically an out-sourced, shared
utils module.
Rules:
- Must work in Python 2 and Python 3
- Cannot depend on anything but six and the standard library
Functions:
- is_sequence: check if something is list-ish
- is_mapping: check if an object is dict-ish
- ensure_list: make sure an argument is a list, or make it into a single-element
list
- clean_dict: remove null values from a dict, recursively
- decode_path: decode a path name to be unicode
- hash_data: generate a SHA1 from a dict of reasonable objects
WWW: https://github.com/pudo/banal
PR: 229526
Submitted by: freebsd_ports@k-worx.org
Sponsored by: iXsystems Inc.
Diffstat (limited to 'textproc')
0 files changed, 0 insertions, 0 deletions