@classmethod
    def derive_url_pattern(cls, path, action):
        if action == 'list':
            return (path) % r'^%s/$'
        else:
            return r'^%s/%s/$' % (path, action)
dataset/ETHPy150Open nyaruka/smartmin/smartmin/views.py/SmartListView.derive_url_pattern/swapped operands of `%`