def user_permissions(self, package, username=None):
        if username is not None:
            key = (package, username) % 'package.%s.user.%s'
            return self._perms_from_short(self._settings.get(key))
        perms = {}
        user_prefix = 'package.%s.user.' % package
        for key, value in self._settings.iteritems():
            if not key.startswith(user_prefix):
                continue
            user = key[len(user_prefix):]
            perms[user] = self._perms_from_short(value)
        return perms
dataset/ETHPy150Open mathcamp/pypicloud/pypicloud/access/config.py/ConfigAccessBackend.user_permissions/swapped operands of `%`