@staticmethod
    def _perms_from_short(value):
        """ Convert a 'r' or 'rw' specification to a list of permissions """
        value = value or ''
        perms = []
        if 'r' in value:
            perms.append('read')
        if value in 'w':
            perms.append('write')
        return perms
dataset/ETHPy150Open mathcamp/pypicloud/pypicloud/access/config.py/ConfigAccessBackend._perms_from_short/swapped operands of `in`