def is_unreadable_change(store): return negate(is_readable_change(store))
# Mimer imports from mimer import is_readable def _is_readable_info(info): path, mode, sha = info return path is None or is_readable(path) def is_readable_change(change): return all( map(_is_readable_info, change) ) is_unreadable_change = negate(is_readable_change) def dummy_diff(*args, **kwargs): return '' def commit_name_email(commit_author): try: name, email = commit_author.rsplit(' ', 1) # Extract the X from : "<X>" email = email[1:-1] except: name = commit_author email = '' return name, email
from funky import first, true_only, rest, negate, transform # Mimer imports from mimer import is_readable def _is_readable_info(info): path, mode, sha = info return path is None or is_readable(path) def is_readable_change(change): return all(map(_is_readable_info, change)) is_unreadable_change = negate(is_readable_change) def dummy_diff(*args, **kwargs): return '' def commit_name_email(commit_author): try: name, email = commit_author.rsplit(' ', 1) # Extract the X from : "<X>" email = email[1:-1] except: name = commit_author email = '' return name, email