rez.util#

Misc useful stuff. TODO: Move this into rez.utils.?

rez.util.dedup(seq)#

Remove duplicates from a list while keeping order.

rez.util.shlex_join(value, unsafe_regex=None, replacements=None, enclose_with='"')#

Join args into a valid shell command.

rez.util.find_last_sublist(list_, sublist)#

Given a list, find the last occurance of a sublist within it.

Returns:

Index where the sublist starts, or None if there is no match.

rez.util.is_non_string_iterable(arg)#

Python 2 and 3 compatible non-string iterable identifier