xoxys.general/plugins/filter/wrap.py
Robert Kaussow dcf04af784
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
refactor: rework ci and testing (#3)
2023-01-31 20:09:29 +01:00

16 lines
308 B
Python

"""Filter to wrap all items from a list."""
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
def wrap(value, wrapper="'"):
return [wrapper + x + wrapper for x in value]
class FilterModule(object): # noqa
def filters(self):
return {"wrap": wrap}